- Run
yarn
to install packages - Download pages multistream torrent from metawiki site
- After unzipping, rename the file to
wiki.xml
and move it into thedata
folder for further processing - Then run
yarn db:csv
to convert the XML to CSV - Then run
yarn db:init
to build the database file - Then run
sqlite3 wiki.db
.mode csv
.import links.csv links
- run
CREATE INDEX idx_from_title ON links (from_title);
- Go to the
backend
folder- Add an
.env
file with a your DB's file path as the value forDB_FILE
- Run
yarn watch
to start the server
- Add an
- Go to the
frontend
folder- Create a
.env.local
file with the following:VITE_API_URL=http://localhost:8000/api
- Run
yarn dev
to start the website
- Create a