generator-restful-api

Generator restful api structure for web framework, such as koa, express, restfiy

Usage no npm install needed!

<script type="module">
  import generatorRestfulApi from 'https://cdn.skypack.dev/generator-restful-api';
</script>

README

generator-restful-api NPM version

Installation

First, install Yeoman and generator-restful-api using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-restful-api

Then generate your new project:

yo restful-api

structure


|-app.js

|-config.js

|-readme.md

|-.gitignore

|-routers/

|-utils/

    |-db.js
        
    |-middleware.js

|-test/

    |-util/
    
    |-routers/

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.

License

© karboom