Skip to content

A boilerplate featuring common configurations, dependencies and functionality to provide a quick start for your next project.

License

Notifications You must be signed in to change notification settings

designbystephen/node-boilerplate

Repository files navigation

node-boilerplate

A boilerplate featuring common configurations, dependencies and functionality to provide a quick start for your next project.

Requirements

Getting Started

  • Clone or fork this repo git clone https://github.com/designbystephen/node-boilerplate.git
  • Change to project root cd my-project-directory
  • Install dependencies yarn
  • Start writing code in my-project-directory/src

Scripts

Command Description
yarn test Run unit tests
yarn lint Run linter
yarn build Build /src to /build directory
yarn start Run application at /src/index

Features

Compilation / Transpilation

  • babel
    • @babel/cli
    • @babel/core
    • @babel/node
    • @babel/plugin-transform-runtime
    • @babel/preset-env
    • @babel/register

Envrionment Variables

  • dotenv (.env) support
    • create-react-app style envrionment variables via universal-dotenv

Linting

  • eslint
    • airbnb core linting styles via eslint-config-airbnb-base

Unit Testing

  • mocha
    • Lightweight testing framework
  • expect
    • Jest style assertions
  • nock
    • Request interception useful for testing REST apis

Git Hooks

  • husky
    • Linting at pre-commit
    • customizable for other git hooks

Workspaces

Visual Studio Code

  • typical workspace settings configured in .vscode within the project root

About

A boilerplate featuring common configurations, dependencies and functionality to provide a quick start for your next project.

Topics

Resources

License

Stars

Watchers

Forks