create-my-express
v1.0.3
Published
Create a minimal deployable express web api project in TypeScript or JavaScript
Downloads
38
Maintainers
Readme
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 syntaxNo 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.