Skip to content

devlab-group/node-react-boilerplate

Repository files navigation

Node + React/Redux starter kit

What's inside

  • Docker
    • nginx
    • postgresql
    • node
  • ExpressJS
  • React + Redux
  • Sequelize

Requirements

First setup

Client

  1. Install node_modules:
$ cd client/ && yarn install
  1. Create /client/.env file:
REACT_APP_API_HOST=<server_host> (localhost)
REACT_APP_API_PORT=<server_port> (8080)
REACT_APP_API_HTTPS=false
REACT_APP_API_BASE_PATH=/api/v1
REACT_APP_API_WITH_CREDENTIALS=true

Server

  1. Install node_modules:
$ cd server/ && yarn install
  1. Create /server/.env file:
FRONT_HOSTNAME=<client_hostname> (localhost)
FRONT_PORT=<client_port> (3000)
HTTPS=false
SESSION_SECRET=<some_long_string>

POSTGRES_HOST=postgres
POSTGRES_USER=<db_user>
POSTGRES_DB=<db_name>
POSTGRES_PASSWORD=<password>

MAILGUN_API_KEY=<api-key>
MAILGUN_DOMAIN=<domain>
MAIL_FROM='"Bolierplate" <noreply@boilerplate.com>'

Available commands

Commands below should be executed with make command.

Command Description
run Runs docker in production environment
logs Prints docker logs in production
down Stops docker production
run-dev Runs docker in development environment
logs-dev Prints docker logs in development
down-dev Stops docker production

Bonus

The boilerplate contains ready-to-use authentication system.

About

A node plus react starter kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published