1.0.3 • Published 9 months ago

create-my-express v1.0.3

Weekly downloads
-
License
MIT-0
Repository
github
Last release
9 months ago

create-my-express

Create a minimal deployable express web api project in TypeScript or JavaScript

Usage

# with npx
npx create-my-express --typescript name-of-app
# with yarn
yarn create my-express --typescript name-of-app
# pnpm support in development

Features

  • Just the basics almost every project needs

  • import x from "y" module syntax

  • No assumptions about database choices, no html templating

  • Yarn support, Windows support

  • TypeScript option

  • Jest & supertest for testing endpoints

  • Dockerfile included

Options

Options:
  -V, --version      output the version number
  -G, --nogit        do not initialize a git repository
  -n, --name <name>  project-name
  -t, --typescript   generate typescript project template
  -y, --yarn         use yarn instead of npm
  -h, --help         display help for command

Generated Project Structure

.env
Dockerfile
...
/src
  /controllers
    /root
      getRoot
      postRoot
  /middleware
    errorHandler
    fourOhFour
  /routes
    root
  /tests
    root.spec
  app
  config
  index

Template Sources

node express starter or a typescript express starter

Etc.

Help, contributions, and criticisms are very welcome.

Thanks to CJ R. who originally developed create-express-api, on which this project is based.

1.0.2

9 months ago

1.0.1

9 months ago

1.0.3

9 months ago

0.5.0

1 year ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago