Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andresfernandez89/app-apirest-nodejs-mongodb-expressjs-passport

crud-dao-express-ejs-mongodb-passport-websockets-nodemailer-twilio
https://github.com/andresfernandez89/app-apirest-nodejs-mongodb-expressjs-passport

crud expressjs javascipt mongodb nodejs nodemailer passport twilio websockets

Last synced: 8 days ago
JSON representation

crud-dao-express-ejs-mongodb-passport-websockets-nodemailer-twilio

Awesome Lists containing this project

README

        

# API RESTFUL - ECOMMERCE

## CRUD - DAO - NODEJS - EXPRESS - MONGO DB - WEBSOCKETS - PASSPORT - TWILIO - NODEMAILER

## Deploy

Deploy on heroku

https://apirest-node-mongo-express.herokuapp.com/

## Technologies

- bcrypt: "^5.0.1"
- connect-mongo: "^4.6.0",
- cors: "^2.8.5",
- dotenv: "^16.0.0",
- ejs: "^3.1.6",
- express: "^4.17.1",
- expresssession": "^1.17.2",
- log4js: "^6.4.1",
- minimist: "^1.2.5",
- moment: "^2.29.3",
- mongoose: "^6.1.1",
- multer: "^1.4.4",
- nodemailer: "^6.7.2",
- passport: "^0.5.2",
- passportlocal": "^1.0.0",
- socketio": "^4.4.1",
- twilio: "^3.75.0"

## Get Started

App require [Node.js](https://nodejs.org/)

Install dependencies

```sh
npm i
npm start
```

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:8080](http://localhost:8080) to view it in the browser.

## .env file

- PORT="port"
- NODE_ENV=production
- DB="database"
- MONGODB_URL="mongo url"
- MONGODB_SECRET="secret word for sessions"
- NODEMAILER_GMAIL_SERVICE=gmail
- NODEMAILER_GMAIL_PORT=587
- NODEMAILER_GMAIL_MAIL="email gmail"
- NODEMAILER_GMAIL_PASS="email password"
- TWILIO_ACCOUNTSID="twilio sid"
- TWILIO_AUTHTOKEN="twilio token"

_You can see an example in the demo.env file_