🔌 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 ☕️