GithubHelp home page GithubHelp logo

hzburki / node-express-sequelize-es2015 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arnaudvalensi/node-express-sequelize-es2015

0.0 1.0 1.0 22 KB

A boilerplate using NodeJs, Express, Sequelize, Apidoc, Eslint, Mocha, Cluster and the best practices.

JavaScript 100.00%

node-express-sequelize-es2015's Introduction

node-express-sequelize-es2015

A boilerplate using NodeJs, Express, Sequelize, Apidoc, Eslint, Mocha, Cluster and the best practices.

Getting up and running

  1. Clone the repository
  2. npm install
  3. npm run dev
  4. Visit https://localhost:3000
  5. Visit https://localhost:3000/apidoc to see the existing API

Some command

npm start  # Run the serveur in cluster mode (it also generate the apidoc)
npm lint   # Check lint error using eslint
npm test   # run mocha tests
npm apidoc # Generate the apidoc

Coding Style

The coding style used is the airbnb one: https://github.com/airbnb/javascript

You can configure it in the .eslintrc file.

Architecture

The architecture is MVR (Model View Route)

The files are structured in the following manner:

libs        (Configurations files and libs)
models      (Sequelize models)
routes      (Express routes, the comments in this folder are used to generate the apidoc)
test        (mocha test, 'npm test' to run it)
auth.js     (Configuration for JWT auth (JSON Web Tokens))
cluster.js  (Used to run in cluster mode. We could use https://github.com/Unitech/pm2 too)
index.js    (Entry point)
ntask.*     (SSL certificates)

If you want to have a better understanding of the architecture, I recommend you to read Caio Ribeiro Pereira's book.

Credit

This project is base on the book of Caio Ribeiro Pereira and his repository so, all the credit goes to him. Also, I recommend you his book.

node-express-sequelize-es2015's People

Contributors

arnaudvalensi avatar schenkfab avatar

Watchers

Haseeb Burki avatar

Forkers

whatthehanan

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.