generator-rest-api-projects v1.3.3
Yeoman | Generator Standard REST API Projects 
š Description
š 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.
š¹ Video Demo
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.
š WIP
This project is alive and I'm currently working on improving it. The features implemented to date are:
ā Core Project Yeoman. \ ā Best Practices Doc. \ ā Main libraries: TypeScript, ESLint, Nodemon, Jest + Supertest. \ ā Custom libraries: PouchDB Wrapper. \ ā Builder Express Project. \ ā Builder Fastify Project. \ ā Builder Koa Project. \ ā Builder Polka Project. \ ā Unit Test. \ ā Improve Documentation and custom Readme.md by libraries. \ š Include pre-commits rules with Husky library.
š Methodologies and Guidelines
Quality Assurance Code (QAC)
- ESTlint, tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. \ NPM ESLint \ NPM ESLint | Airbnb
ā Prerequisites
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
š How to work with this project
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
š How to create my applications
Once installed you can generate a project by executing the following command.
# Run yeoman generator
$yo generator-rest-api-projects
š Code scaffolding
/
āāā 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.
| āāā ...
āāā ...
š¦ Core and Libraries
This project is based on Yeoman library for create API REST projects with Express, Fastify, Koa and Polka frameworks.
ā½ļø Review and Update Dependences
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
Contact
š Linkedin \ š¦ Twitter \ š§ me@josejpr.com
License
Happy Code
Created with JavaScript, lot of ā¤ļø and a few āļø