The go-to place for all your college needs. From course notes and previous exams to grades and feeding schedules.
See college-resources/web for the website source code.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
-
NodeJS 14.X (Recommended version: NodeJS 14.15.0 x64)
TBA
Navigate to the folder where you want the project to be saved and run the following command:
git clone https://github.com/college-resources/api.git
-
Navigate to the root of the project and run
npm install
. -
Create a
.env
file in the root of the project and add the following details:
NODE_ENV=<production/development, production is default>
MONGODB_USER=<MONGODB_USERNAME>
MONGODB_PASS=<MONGODB_PASSWORD>
MONGODB_CLUSTER=<mongo.db.domain.name/database-name?parameter=value>
AUTH0_DOMAIN=<YOUR_AUTH0_DOMAIN>
AUTH0_AUDIENCE=<YOUR_AUTH0_AUDIENCE>
SERVER_ADDRESS=http://localhost
SERVER_PORT=3000
-
In the root of the project run
npm run watch
. -
Wait for it to compile and navigate to
http://localhost:3000/graphql
.
- In the root of the project run
npm run production
node dist/bundle.js
- When the server starts, go to
http://localhost:3000/graphql