- Run
$ git clone https://github.com/KumarAbhirup/nextjs-boilerplate <PROJECT_NAME> # to clone project
$ cd <PROJECT_NAME> # enter in the project
$ npm i # install modules
$ npm run dev # run development server
- Visit
http://localhost:3001/
- Dump all your
.scss
files insrc/public/assets/styles
. - Run
npm run gulp
to generate minified CSS files. - While styling, use
npm run gulp:watch
, for live compilation.
- Install ESLint and Prettier VSCode extensions.
- Done! Now you have live linting and autofixing setup!
- Run
npm run lint
to check for linting errors. - Run
npm run lint:fix
to 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/public
directory is served onhttp://localhost:3001/public
. - Store your html templates in
src/public
directory. - Supports only
.scss
files for compilation. - To customize the linter, use
.eslintrc
and.prettierrc
file. Learn more
MIT - Source code by Kumar Abhirup