# express-draft

> Minimal express api generator

Latest version **1.0.4** (published 2021-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-draft
pnpm add express-draft
yarn add express-draft
bun add express-draft
```

Provides the commands `exp`, `express-draft`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-07-29 |
| First published | 2020-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Truly Mittal |
| Maintainers | trulymittal |
| Keywords | express, framework, express-draft, exp, express api scaffolding, sinatra, web, rest, restful, router, app, api |

## Links

- npm: https://www.npmjs.com/package/express-draft
- Repository: https://github.com/trulymittal/express-draft
- Issues: https://github.com/trulymittal/express-draft/issues
- Funding: https://paypal.me/trulymittal
- npm.io page: https://npm.io/package/express-draft

## Dependencies (6)

- [ora](https://npm.io/package/ora.md) ^5.2.0
- [boxen](https://npm.io/package/boxen.md) ^4.2.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [figlet](https://npm.io/package/figlet.md) ^1.5.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.1
- [log-symbols](https://npm.io/package/log-symbols.md) ^4.0.0

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2021-07-29
- 1.0.3 — 2021-03-29
- 1.0.2 — 2020-12-29
- 1.0.1 — 2020-12-29
- 1.0.0 — 2020-12-29

## README

```bash
   ('-.  ) (`-.       _ (`-.
 _(  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 🏭

```bash
$ 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:

```bash
$ exp .
$ npm run dev
```

OR, create (and start) the app (in `myApp` folder):

```bash
$ exp myApp
$ cd myApp
$ npm run dev
```

This will basically create this structure in your folder

```bash
.
├── .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.

<p align='center'>
<img src='https://raw.githubusercontent.com/trulymittal/express-draft/master/SCREENCAST.svg' width='600' alt='express-draft'>
</p>

## 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 🇮🇳**](https://trulymittal.com)

## YouTube 📺

https://youtube.com/c/yourstruly267

## Donations 💰

https://paypal.me/trulymittal

## License 🎫

[MIT](LICENSE)

## Contribute 🤝

You can fork this repo and send me a PR.

---
_Source: https://npm.io/package/express-draft · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
