RESTful API Nodejs designed for horizontal scalability with support for cluster, based on Swagger, Redis, JWT, Passport, Socket.io, Express, MongoDB.
npm install nodetomic-api-swagger
Nodetomic Api Swagger        
> RESTful API Nodejs designed for horizontal scalability with support for cluster, based on Swagger, Redis, JWT, Passport, Socket.io, Express, MongoDB.
url:

url:
OpenAPI Spec compatibility: 2.0, 3.0

View horizontal scaling representation image with nodetomic-api-swagger HERE!
/src/
|-- api
| |-- swagger
| |-- controllers
| |-- models
|-- sockets-- services
|-- assets
|-- auth
| |-- swagger
| |-- controllers
| |-- passports
|
|-- config
|-- lib
| |-- express
| |-- mongoose
| |-- redis-jwt
| |-- socket.io
|-- swagger-- app.js
|-- views
- Nodejs >= 6.x.x (Recommended last version)
- MongoDB >= 3.x.x
- Redis >= 3.x.x (Recommended last version)
Npm
``bash`
git clone https://github.com/kevoj/nodetomic-api-swagger
cd nodetomic-api-swagger
npm i
Yarn
`bash`
yarn add nodetomic-api-swagger --ignore-engines
Command: npm start
Description: Start the project in development mode
Note: if you want work with nodemon execute the command npm run modemon
Command: npm run build
Description: Compile the project by outputting the dist folder
Note: Generate folder dist. So "dist/client" is optional. You can paste the compilation of a client here, for example of Vue, React, Angular...
Command: npm test
Description: Run Lint and run Build in production mode and execute the authentication methods and basic requests.
Command: npm run lint
Description: Run ESLint to verify the entire project code
Command: npm run dev-simple
Description: Run Pm2 and compile the project in development mode in a single instance
Command: npm run dev-cluster
Description: Run Pm2 and compile the project in development mode in multiple instances
Command: npm run simple
Description: Run Pm2 and compile the project in production mode in a single instance
Command: npm run cluster
Description: Run Pm2 and compile the project in production mode in multiple instances
Command: npm stop
Description: Stops all processes associated with project pm2
Command: killall node`
Description: Destroyed all process for node
You can find the documentation HERE!
MIT © Leonardo Rico