- Run
$ git clone https://github.com/KumarAbhirup/nodejs-boilerplate <PROJECT_NAME>
$ cd <PROJECT_NAME>
$ npm i
$ npm run dev- Visit
http://localhost:3001/
- Dump all your
.scssfiles insrc/public/assets/styles. - Run
npm run gulpto generate minified CSS files. - While styling, use
npm run gulp:watch, for live compilation.
In VSCode
- Install ESLint and Prettier VSCode extensions.
- Done! Now you have live linting and autofixing setup!
In Any other IDE
- Run
npm run lintto check for linting errors. - Run
npm run lint:fixto fix the linting errors.
- The entrypoint for the app is
src/server/index.js. App uses ExpressJs. Do your custom server, APIs and routing from there. Learn more - The
src/publicdirectory is served onhttp://localhost:3001/public. - Store your html templates in
src/publicdirectory. - Supports only
.scssfiles for compilation. - To customize the linter, use
.eslintrcand.prettierrcfile. Learn more
MIT - Source code by Kumar Abhirup