Skip to content

πŸ”Œ Create Standard REST API Projects with Yeoman and Express, Fastify, Koa and Polka frameworks.

License

Notifications You must be signed in to change notification settings

JoseJPR/yeoman-generator-rest-api-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Yeoman | Generator Standard REST API Projects standard-readme compliant

Logos

πŸ”– 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.

Video

πŸ“Œ Methodologies and Guidelines

Quality Assurance Code (QAC)

βœ… 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

License

MIT

Happy Code

Created with JavaScript, lot of ❀️ and a few β˜•οΈ

This README.md file has been written keeping in mind

About

πŸ”Œ Create Standard REST API Projects with Yeoman and Express, Fastify, Koa and Polka frameworks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published