- If you have a local MongoDB server running, you may edit the file
.env
to point to the correct URI (defaultmongodb://localhost:27017/ratchet-api
) - If you do not have MongoDB running but you have it installed and
mongod
is in the path, run./mongo-start.sh
to start a MongoDB server in the terminal. The data directory will be set as./mongodb/data
- Alternatively
./mongo-background.sh
will start a server in the background - If you do not have a MongoDB server you can download it here
- This app is tested on Node.js 10.7.0
npm install
to install npm packagesnpm start
to run server (the equivalent command isnode ./server/index.js
)- Default port is 3000
- Use the Demo App front-end to interface with this API
GET /items
POST /items
with body{ title: String, column: Number }
DELETE /items/:id
GET /log
npm test
to test the API endpoints