Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mainageorge/node-express-api
This is an app to test building an api with nodejs and express framework The app uses mongodb for storing data. You need to set up the connection string to mongodb to use it. The app is a RESTful API CRUD operations on a model product with validations using Joi library and custom validation middlewares.
https://github.com/mainageorge/node-express-api
cors express expressjs joi joi-validator-schema jwt-authentication jwt-bearer-tokens model-validation mongodb mongoose nodejs nodemon promises-async-await rest-api restful-api
Last synced: about 1 month ago
JSON representation
This is an app to test building an api with nodejs and express framework The app uses mongodb for storing data. You need to set up the connection string to mongodb to use it. The app is a RESTful API CRUD operations on a model product with validations using Joi library and custom validation middlewares.
- Host: GitHub
- URL: https://github.com/mainageorge/node-express-api
- Owner: MainaGeorge
- Created: 2022-08-06T22:22:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T11:04:17.000Z (over 2 years ago)
- Last Synced: 2023-03-06T10:31:53.768Z (almost 2 years ago)
- Topics: cors, express, expressjs, joi, joi-validator-schema, jwt-authentication, jwt-bearer-tokens, model-validation, mongodb, mongoose, nodejs, nodemon, promises-async-await, rest-api, restful-api
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-express-api
This is an app to test building an api with nodejs and express framework
The app uses mongodb for storing data. You need to set up the connection string to mongodb to use it.
The app is a RESTful API CRUD operations on a model product with validations using Joi library and custom validation middlewares.annonymous user can list out the products from the database
annonymous user can get a product by id
logged in user can update or delete products
logged in user can see a list of all other usersYou have to create a config file called .env at the root of the project. The file should hold the values:
PORT=port number you wish to run the api on
CONNECTION_STRING="mongodb connection string"
API_VERSION="/api/v1"
APP_SECRET="YOUR SECURE SECRET HERE"