A RESTful API for the fsm-core module.
Last updated a year ago by moraispgsi .
Original npm · Tarball · package.json
$ cnpm install fsm-restful 
SYNC missed versions from official npm registry.


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.


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.


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.

Current Tags

  • 1.0.5                                ...           latest (a year ago)

6 Versions

  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 6
This Month 12
Last Day 6
Last Week 0
Last Month 1
Dependencies (37)
Dev Dependencies (15)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |