API Exercise - Node.js
A simple, prototyping account management API service developing with Node.js, that can:
- Register a new account.
- Login/logout.
- Show/edit account info.
Runtime Environment
- Node Js v10.x+
- MongoDB v3.6+
How To Use
- Clone this project to local.
- Run command
npm install
under the project's folder at the first time. - Run command
npm start
to start service.
Options: Environment Variable
- PORT: the number of HTTP port for listening. Default:
3000
- DB_URL: the connection URL to connect the MongoDB for data storage. Default:
mongodb://localhost/api-exercise
Testing, Documentation
Documentation & Testing UI generated by swagger. URL: http://<hostname_or_ip>:<port>/api-doc/v1/
Default URL: http://localhost:3000/api-doc/v1/