Thanks to visit codestin.com
Credit goes to github.com

Skip to content

uCredit-Dev/uCredit-API

 
 

Repository files navigation

uCredit-API

To run program from a fresh clone:

  1. Create a .env file with the following content:
DEBUG=True
SIS_API_KEY=YOUR_API_KEY
  1. 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

Ingesting SIS Courses into the Local DB

  1. Attach a shell to the web docker container.
  2. 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.

About

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 20