Coder Social home page Coder Social logo

kumarabhirup / nodejs-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 11 KB

Complete NodeJs, Express server boilerplate with Sass and Linting!

License: MIT License

JavaScript 68.82% HTML 26.31% CSS 4.87%
express nodejs expressjs boilerplate linting sass boilerplate-template boilerplate-node boilerplate-html

nodejs-boilerplate's Introduction

๐Ÿ› nodejs-boilerplate

Type emoji-log Twitter

๐Ÿ“ฆ Setup

๐Ÿ–ฅ๏ธ Development environment

  • Run
$ git clone https://github.com/KumarAbhirup/nodejs-boilerplate <PROJECT_NAME>
$ cd <PROJECT_NAME>
$ npm i
$ npm run dev
  • Visit http://localhost:3001/

๐ŸŽท SASS usage

  • Dump all your .scss files in src/public/assets/styles.
  • Run npm run gulp to generate minified CSS files.
  • While styling, use npm run gulp:watch, for live compilation.

โš’๏ธ Linting

In VSCode

  • Install ESLint and Prettier VSCode extensions.
  • Done! Now you have live linting and autofixing setup!

In Any other IDE

  • Run npm run lint to check for linting errors.
  • Run npm run lint:fix to fix the linting errors.

๐Ÿฆ„ Info

  • 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 on http://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

๐Ÿ“ License

MIT - Source code by Kumar Abhirup

Follow me ๐Ÿ‘‹ on Twitter โ†’ Twitter

nodejs-boilerplate's People

Contributors

kumarabhirup avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.