Code Monkey home page Code Monkey logo

kevoj / nodetomic-api Goto Github PK

View Code? Open in Web Editor NEW
75.0 5.0 33.0 2.11 MB

NEW VERSION HERE https://github.com/kevoj/nodetomic RESTful API Nodejs designed for horizontal scalability with support for cluster, based on Express, MongoDB, Redis, JWT, Socket.io, Passport.

License: MIT License

HTML 17.49% JavaScript 81.00% CSS 1.51%
nodejs es6 javascript mongodb expressjs babel nodejs-api nodejs-server nodejs-framework nodejs-api-boilerplate

nodetomic-api's Introduction

===> NEWS! ๐Ÿ”ฅ๐Ÿ”ฅ NEW FASTER AND MORE SCALABLE VERSION HERE!


Nodetomic Api

Codacy Badge NPM version Build Status dependencies Status devDependencies Status Gitter chat GitHub license Downloads

RESTful API Nodejs designed for horizontal scalability with support for cluster, based on Express, MongoDB, Redis, JWT, Socket.io, Passport.

If you want, the swagger version is also available: nodetomic-api-swagger

Technologies

Horizontal scalability

View horizontal scaling representation image with nodetomic-api HERE!

Structure

 
/src/
|-- api
|   |-- controllers
|   |-- models
|   |-- sockets
|   `-- routers
|-- assets
|-- auth
|   |-- controllers
|   |-- passports
|   |-- services
|   `-- routers
|-- config
|-- lib
|   |-- express
|   |-- mongoose
|   |-- redis-jwt
|   `-- socket.io
|-- views
`-- app.js

Preview

Development

Imgur

Production

Imgur

Requirements

Installation

Npm

git clone https://github.com/kevoj/nodetomic-api
cd nodetomic-api
npm i

Yarn

yarn add nodetomic-api --ignore-engines

Development

Start

Command: npm start

Description: Start the project in development mode

Imgur

Note: if you want work with nodemon execute the command npm run modemon

Build

Command: npm run build

Description: Compile the project by outputting the dist folder

Imgur

Note: Generate folder dist. So "dist/client" is optional. You can paste the compilation of a client here, for example of Vue, React, Angular...

Imgur

Test

Command: npm test

Description: Run Lint and run Build in production mode and execute the authentication methods and basic requests.

Imgur

Lint

Command: npm run lint

Description: Run ESLint to verify the entire project code


Pm2 [Development]

Dev-Simple

Command: npm run dev-simple

Description: Run Pm2 and compile the project in development mode in a single instance

Imgur

Dev-Cluster

Command: npm run dev-cluster

Description: Run Pm2 and compile the project in development mode in multiple instances

Imgur

Pm2 [Production]

Simple

Command: npm run simple

Description: Run Pm2 and compile the project in production mode in a single instance

Imgur

Cluster

Command: npm run cluster

Description: Run Pm2 and compile the project in production mode in multiple instances

Imgur

Stop

Pm2

Command: npm stop

Description: Stops all processes associated with project pm2

Node

Command: killall node

Description: Destroyed all process for node

API Docs

You can find the documentation HERE!

License

MIT ยฉ Leonardo Rico

nodetomic-api's People

Contributors

kevoj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.