Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fazt/nodejs-rest-auth
A REST API using Nodejs, Mongodb, Redis and Docker wiith docker-compose
https://github.com/fazt/nodejs-rest-auth
mongodb nodejs redis
Last synced: 4 days ago
JSON representation
A REST API using Nodejs, Mongodb, Redis and Docker wiith docker-compose
- Host: GitHub
- URL: https://github.com/fazt/nodejs-rest-auth
- Owner: fazt
- Created: 2021-11-11T00:09:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T22:22:49.000Z (over 1 year ago)
- Last Synced: 2024-04-14T07:47:01.725Z (7 months ago)
- Topics: mongodb, nodejs, redis
- Language: JavaScript
- Homepage:
- Size: 247 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Node REST API Authentication
This project is a REST API example using Nodejs, Mongodb, Redis and docker. The code is written considering a production environment with docker-compose in the cloud
### Installation for production
Requeriments:
* Nodejs
* Redis
* Mongodb### Installation for development with docker-compose (Recommended)
Fist, you need to clone the project and install the dependencies
```
git clone https://github.com/FaztWeb/nodejs-restapi-auth
cd nodejs-restapi-auth
npm install
```then, you can execute docker-compose for redis and mongodb
```
docker-compose up -d
```finally, you can run the project with the command
```
npm run dev
```now you can visit the http://localhost:3000 with your favorite *rest client*