mirror of
https://github.com/RustyRaptor/schej.it.git
synced 2026-12-03 15:55:18 -07:00
Schej.it API
API docs (available when the server is running): http://localhost:3002/swagger/index.html
Debug
- Install mongodb
- Install
air, a package that facilitates live reload for Go appsgo install github.com/cosmtrek/air@latest
- To run the server, simply run
airin the root directory of the server
Make a backup of the mongodb database
- Run
mongodump --host="localhost:27017" --db=schej-itto make a backup - Run
mongorestore --uri mongodb://localhost:27017 ./dump --dropto restore