nodee-api v0.0.2
('-. ) (`-. _ (`-.
_( OO) ( OO ). ( (OO )
(,------.(_/. \_)-._.` \
| .---' \ `.' /(__...--''
| | \ /\ | / | |
(| '--. \ \ | | |_.' |
| .--' .' \_)| .___.'
| `---. / .'. \ | |
`------''--' '--'`--'
Express API Scaffolding (express-draft)
This is a no nonsense and minimal Express.js application generator, which is can be used as a starting point for any express application.
Installation š
$ npm install -g express-draft
Why another express generator ā
This generates the API scaffolding with the error handler ā ļø, which is always a good idea.
Only installs the bare bones š and "mostly" required dependencies whenever you try to start a new express application.
Quick Start šāāļø
The quickest way to get started with express is to utilize the executable exp
(OR express-draft
) to generate an application as shown below:
Create (and start) the app in current folder:
$ exp .
$ npm run dev
OR, create (and start) the app (in myApp
folder):
$ exp myApp
$ cd myApp
$ npm run dev
This will basically create this structure in your folder
.
āāā .env
āāā app.js
āāā node_modules
āāā package-lock.json
āāā package.json
āāā routes
āāā api.route.js
This is how easy it is to get going.
A picture is worth a thousand words.
What dependencies it installs ?
- express - express framework
- dotenv - for env variables
- http-errors - to create http errors
- morgan - to log http requests
- nodemon (dev) - monitors changes in files
Command Line Options
Actually NONE is required š as of now, incase I continue this project OR I'll get requests then certainly this is not the end.
Author āļø
YouTube šŗ
https://youtube.com/c/yourstruly267
Donations š°
License š«
Contribute š¤
You can fork this repo and send me a PR.