Just run docker compose up -d --build in the terminal in the root of the project.
- Follow the instructions for your operating system:
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-windows/
npm install- Inside this repository, run our helper script to create a MongoDB database and collection:
bash ./scripts/setup_dev_db.shThis will setup the DB in ./data/db and start the MongoDB server. The DB runs on port 42069.
- While step 3 will start the MongoDB server, you can also run it if it's already setup:
bash ./scripts/start_dev_db.sh- In a different terminal session, run the following command to test the connection to the MongoDB server:
node ./scripts/test_dev_db.sh- You can generate test data using the following scripts:
node ./scripts/seed_tilesets.js- Finally, start the server:
node index.js- The server will be running at http://localhost:3000