create-my-express

1.0.3 • Public • Published

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.

/create-my-express/

    Package Sidebar

    Install

    npm i create-my-express

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT-0

    Unpacked Size

    15.6 kB

    Total Files

    8

    Last publish

    Collaborators

    • redcartel