To run program from a fresh clone:
- Create a
.env
file with the following content:
DEBUG=True
SIS_API_KEY=YOUR_API_KEY
- Build docker:
docker-compose build && docker-compose up
If run locally, the default port is 4567 and Mongodb port is 27017.
API routes saved in ./routes Mongoose Schema saved in ./model Database connection made in ./data/db.js
- Attach a shell to the web docker container.
- Run
node data/cacheSISCoursesWithVersions.js
WARNING: Make sure you run in the code/
directory; do not run the command in the
code/data/
directory!
You can see the contents of your local database in MongoDBCompass.
The URL is mongodb://localhost:27017/debug
.