Skip to content

Express app generator to build Node.js RESTful API Services.

Notifications You must be signed in to change notification settings

BekYahia/express-app-generator

Repository files navigation

Express app generator

Documentation

Documentation.

API Reference

Get all users

  GET /api/users

Create user

  POST /api/users
Parameter Type Description
name string Required
email string Required.
password string Required.
role string Optional. default is user

Get user

  GET /api/users/${id}
Parameter Type Description
id number Required. Id of user to fetch

Update user

  UPDATE /api/users/${id}
Parameter Type Description
id number Required. Id of user to update

Delete user

  DELETE /api/users/${id}
Parameter Type Description
id number Required. Id of user to delete

Authenticate user

  GET /api/users/me
header Type Description
x-auth-token string Required. to identify the user

Installation

1) Environment Variables

rename .env.sample to .env and write your DB credentials

2) Dependencies

npm i

3) Then run on your envirnoment:

development

  npm run dev

production

  npm start

test

  npm test

About

Express app generator to build Node.js RESTful API Services.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published