This is a repo for the backend server, db, and api for the [itp-resource-collector].
It is a general purpose REST API for serving up data, submiting resources, and handling user auth.
In the following order...
- Install the dependencies. In terminal windown #1
npm install
- Run Mongodb. In terminal windown #2
mongod
- Load up some data. In terminal windown #1
npm run importCodingTrain2Mongo
- Run the servern In terminal windown #1
npm start
- Test a request In terminal windown #3
# Retrieves a list of all the coding train tags
curl -i http://127.0.0.1:5000/api/tags