monostack

Bootstrap a fullstack React and Express app in seconds.

MIT License

Stars
0

Monostack

Bootstrap a fullstack React and Express app in seconds.

Features

  • React 16, Express 4, and Tailwind CSS
  • Single commands to start, build, and serve the client and server
  • Shared environment variables
  • Babel to write ES6 everywhere
  • Prettier with Husky enabled on pre-commits
  • Hot reloading for the client and server

Requirements

  • Node 10.x
  • Yarn 1.x

Quick Start

$ yarn setup
$ yarn start

Navigate to http://localhost:3000.

Development

Setup Project

  • Installs dependencies for the Server and Client.
  • Creates an .env file with defaults if one doesn't exist.
$ yarn setup

Start development servers

$ yarn start

Environment Variables

Located in the .env file. Follow .env.example as an example.

Production

Setup Project

$ yarn setup

Build Server and Client

$ yarn build

Serve Server and Client

$ yarn serve