7. Things BE v1 - rolling-scopes-school/RS-Short-Track GitHub Wiki
Folder Name | Branch | Coefficient |
---|---|---|
things-v1 | things-v1 | 1.5 |
Things BE v1
Your task is to implement small CRUD BE for 'Things'
API that should be supported
GET api/v1/things -> list of all things
POST api/v1/things -> create a new thing
PUT api/v1/things/:id -> update an existing thing by its own id
DELETE api/v1/things/:id -> delete an existing thing by its own id
- What is a thing?
Object {
id: 'String, uniq, mandatory',
name: 'String, mandatory',
/* Anything you wish */
}
- All things should be stored in the fs (using JSON). (Using npm libs is strictly forbidden)
- App should support cors
- App should work with
application/json
- There should be logging in place
- App should be written the way that it will be easy to add a v2 API later on
- Port that used by the app should be configured in the .env file or 3000 by default
- Using nodemon/pm2 for development is mandatory
- You shoud create a readme that tells how to run your project and link to Heroku if exists
Extra:
- Deploy to Heroku 15p