0.1.0 • Published 5 years ago
@hermawan22/create-nodejs-app v0.1.0
Create NodeJS App
How to install
npx @hermawan22/create-nodejs-app <name-of-project>
or
npm install -g @hermawan22/create-nodejs-app
or
yarn global add @hermawan22/create-nodejs-appInitial setup
- Rename
.env.exampleto be.env - If want use database connection on .env, change FEATURE_FLAGS value of withDatabase to be
true
How to run
create-nodejs-app <name-of-project>
cd <name-of-project>
yarn install
yarn devStructure of project
- I grouped the code based on modules (e.g user and auth in this boilerplate, try look into
modulesfolder) - Routes is at
routes.ts, simply create instance and pass path arguments to used by modules (see example atmodulesfolder)