kick-off-express
v1.0.5
Published
A CLI to bootstrap new express projects
Downloads
17
Readme
kick-off-express
A CLI to bootstrap new express projects.
A good starting point for your new express project. Don't worry about setting-up tooling and configurations. This tool will set-up and configure:
- nodemon - monitors any changes in your source and automatically restarts your server.
- babel - converts new JavaScript syntax / next generation JavaScript into a backwards compatible version.
- prettier - enforce code-formatting rules.
- eslint - encforce code-quality rules. Airbnb style guide configured.
- jest - testing framework
Create an App
npx
npx kick-off-express my-app
This will generate the project structure below:
my-app
.
+-- .prettierrc
+-- package.json
+-- jest.config.js
+-- .eslintrc.json
+-- .babelrc
+-- src
| +-- index.js
| +-- server.js
| +-- __tests__
+-- package.lock.json
+-- node_modules
Development
npm start
runs the app in development mode. Open http://localhost:3000.
Production
Precompile assets using npm run build
. Use npm run serve
to start the server in production.
Testing
Jest is configured and a sample test has been written. Run tests using npm test
.