69b8257690
Bumps [qs](https://github.com/ljharb/qs) to 6.11.0 and updates ancestor dependencies [qs](https://github.com/ljharb/qs), [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `qs` from 6.5.2 to 6.11.0 - [Release notes](https://github.com/ljharb/qs/releases) - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](https://github.com/ljharb/qs/compare/v6.5.2...v6.11.0) Updates `body-parser` from 1.18.3 to 1.20.1 - [Release notes](https://github.com/expressjs/body-parser/releases) - [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md) - [Commits](https://github.com/expressjs/body-parser/compare/1.18.3...1.20.1) Updates `express` from 4.16.4 to 4.18.2 - [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.18.2) --- updated-dependencies: - dependency-name: qs dependency-type: indirect - dependency-name: body-parser dependency-type: direct:production - 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)