@faisonslepoint/expi
v1.2.1
Published
Express API RESTFull generator
Downloads
12
Maintainers
Readme
__/\\\\\\\\\\\\\\\___________________________________
_\/\\\///////////____________________________________
_\/\\\_____________________________/\\\\\\\\\___/\\\_
_\/\\\\\\\\\\\______/\\\____/\\\__/\\\/////\\\_\///__
_\/\\\///////______\///\\\/\\\/__\/\\\\\\\\\\___/\\\_
_\/\\\_______________\///\\\/____\/\\\//////___\/\\\_
_\/\\\________________/\\\/\\\___\/\\\_________\/\\\_
_\/\\\\\\\\\\\\\\\__/\\\/\///\\\_\/\\\_________\/\\\_
_\///////////////__\///____\///__\///__________\///__
Express API RESTFull Scaffolding (expi)
This is just a Express.js API RESTFull generator, which is can be used as a starting point for any express application.
This project is based on the excellent idea of TrulyMittal But with some additions ;)
Installation 🏭
$ npm install -g @faisonslepoint/expi
Quick Start 🏃♂️
The quickest way to get started is to utilize the executable expi
to generate an application as shown below:
Create (and start) the app in current folder:
$ expi .
$ npm run dev
OR, create (and start) the app (in myApp
folder):
$ expi myApp
$ cd myApp
$ npm run dev
This will basically create this structure in your folder if you choose 'Simple API'
.
├── node_modules
├── .env
├── package-lock.json
├── package.json
└── server.js
This is how easy it is to get going.
If you choose specifics resources
.
└── controllers
└── ... .js
└── ... .js
├── node_modules
├── routers
| └── ... .js
| └── ... .js
├── .env
├── package-lock.json
├── package.json
└── server.js
A picture is worth a thousand words.
What dependencies it installs ?
- express - express framework
- dotenv - for env variables
- cors - for CORS Policy
- nodemon (dev) - monitors changes in files
YouTube 📺
https://www.youtube.com/@FaisonsLePoint