1.2.1 ⢠Published 2 years ago
@faisonslepoint/expi v1.2.1
__/\\\\\\\\\\\\\\\___________________________________
_\/\\\///////////____________________________________
_\/\\\_____________________________/\\\\\\\\\___/\\\_
_\/\\\\\\\\\\\______/\\\____/\\\__/\\\/////\\\_\///__
_\/\\\///////______\///\\\/\\\/__\/\\\\\\\\\\___/\\\_
_\/\\\_______________\///\\\/____\/\\\//////___\/\\\_
_\/\\\________________/\\\/\\\___\/\\\_________\/\\\_
_\/\\\\\\\\\\\\\\\__/\\\/\///\\\_\/\\\_________\/\\\_
_\///////////////__\///____\///__\///__________\///__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/expiQuick 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 devOR, create (and start) the app (in myApp folder):
$ expi myApp
$ cd myApp
$ npm run devThis 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.jsA 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