/node-babel-modern-boilerplate

A boilerplate for Node.js apps working with Babel, ESLint, Prettier, Config, Winston

Primary LanguageJavaScriptMIT LicenseMIT

node-babel-modern-boilerplate

A boilerplate for Node.js apps working with Babel, ESLint, Prettier, Config, Winston

For github users you can use the new template system to fork this boilerplate

Running Locally

Make sure you have Node.js and the Yarn installed.

$ git clone https://github.com/KOJI-SAS/node-babel-modern-boilerplate.git # or clone your own fork
$ cd node-babel-modern-boilerplate
$ cp .env.dist .env
$ yarn
$ yarn dev

Running Production

$ yarn
$ yarn build # Transpile with Babel
$ yarn serve

Running Lint

$ yarn lint
$ yarn lint:fix # Fix errors

File Structure

├── src # Source
│   └── index.js # Main file
├── dist # Transpiled javascript
├── config # Config
├── logs # Winstone logs
└── .env # Environment Variables

Documentation

For more information about used libraries, you can refer

License

This project is under MIT License.