Node.js API template following MVC conventions.
By default, a User and Product objects are modeled. Basic CRUD endpoints are defined in /v1/products
and /v1/users
.
-
Create repository from template.
-
Install the dependencies:
npm i
-
Run the tests:
npm test
-
Start the server:
npm start
-
Generate build:
npm build
MONGO_URI
. Connection string to a MongoDB cluster.SAMPLE_TOKEN
. User token for testing.SECRET
. Used for generating and validating passwords.