5eeef7310d
Bumps [express](https://github.com/expressjs/express) from 4.16.4 to 4.17.3. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](https://github.com/expressjs/express/compare/4.16.4...4.17.3) --- updated-dependencies: - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
controllers | ||
models | ||
.eslintrc.json | ||
.gitignore | ||
LICENSE | ||
README.md | ||
apiRoutes.js | ||
architecture.png | ||
config.json | ||
logger.js | ||
package-lock.json | ||
package.json | ||
server.js |
README.md
trackmyd-api
A simple REST API for trackmyd.
Architecture
Paths & Operations
Path | Operation | Description |
---|---|---|
/devices | GET | Get devices |
/devices | POST | Add new device |
/devices?id= | GET | Get single device |
/devices?id= | PATCH | Update device |
/device?id= | DELETE | Delete device |
/device?name= | GET | Get single device |
Installation
Step by step
- Install NodeJS and NPM.
- Install Mongodb.
- Clone this repository.
- Install dependencies with
npm install
. - Configure users (app.auth.users) basic authentication into
config.json
. - Configure database (db) into
config.json
. - Start with
npm start
.
Made with ❤️ by Francesco Esposito (@franjsco)