Setup and run a mongodb server, if needed follow this guide. Then add a .env
file with the endpoint declared like below:
MONGO_ENDPOINT=mongodb://0.0.0.0:27017
Create a database named tts
or create your own. If you create your own make sure to change the string when connecting to the database in conn.mjs
.
Start the Express server:
cd server
npm install
npm run dev
View the tts-webrequest repository or workshop item to see how to connect via the Tabletop Simulator Api.