π Create Standard REST API Projects with Yeoman.
With this generator you can build a standard REST API projects scaffoldings and tools with Express, Fastify, Polka or Koa frameworks and PouchDB for a local DB.
The following video shows how with Yeoman and this Generator you can start a NodeJS API REST project with Fastify framework in just 5 minutes.
Quality Assurance Code (QAC)
- ESTlint, tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
NPM ESLint
NPM ESLint | Airbnb
In order to work with this project, your local environment must have at least the following versions:
- NodeJS Version: 12.xx
- NPM Version: 6.12.0
First and foremost, you must have Node.js and npm installed. If you don't have Node.js installed, please download and install the latest version.
You must also install Yeoman, if you don't have it installed already. To install Yeoman, you can run this command:
# Install Yeoman
$npm i -g yo
With Node.js and Yeoman installed, you can run this command:
# Install Generator
$npm i -g generator-rest-api-projects
Once installed you can generate a project by executing the following command.
# Run yeoman generator
$yo generator-rest-api-projects
/
βββ assets π # Images Sources.
βββ app π
| βββ config # Generic config.
| βββ templates # Main files for template application.
| | βββ doc # Common documentations for projects.
| | βββ env # Main env files.
| | βββ eslit # Configuration for ESLint.
| | βββ jest # Configuration for Jest.
| | βββ nodemon # Configuration for Nodemon.
| | βββ readme # Main structure for Readme.md files.
| | βββ src # Source JS projects.
| | | βββ common # Common folders and files for all servers.
| | | βββ express # Basic structure for Express Project.
| | | βββ fastify # Basic structure for Fastify Project.
| | | βββ koa # Basic structure for Koa Project.
| | | βββ polka # Basic structure for Polka Project.
| | βββ typescript # Configuration for Typescript.
| βββ ...
βββ ...
This project is based on Yeoman library for create API REST projects with Express, Fastify, Koa and Polka frameworks.
For review and update all npm dependences of this project you need install in global npm package "npm-check" npm module.
# Install and Run
$npm i -g npm-check
$npm-check
Created with JavaScript, lot of β€οΈ and a few βοΈ