Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

husam-draft

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

husam-draft

Minimal express api generator

  • 0.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
   ('-.  ) (`-.       _ (`-.
 _(  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 ❓

  1. This generates the API scaffolding with the error handler ⚠️, which is always a good idea.

  2. 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.

express-draft

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 ✍️

Truly Mittal 🇮🇳

YouTube 📺

https://youtube.com/c/yourstruly267

Donations 💰

https://paypal.me/trulymittal

License 🎫

MIT

Contribute 🤝

You can fork this repo and send me a PR.

Keywords

FAQs

Package last updated on 11 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc