Skip to content

About

(22-Jun-2021) An MVC NodeJS boilerplate with React 19 Redux SPA.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

530 Commits

Folders and files

Repository files navigation

nodejs-react-boilerplate.png

nodejs-react-boilerplate2.png

nodejs-react-boilerplate Tests Pipeline

(22-Jun-2021) An MVC NodeJS boilerplate with React 19 Redux SPA.

Using Postman?

Get Postman HTTP client.

Postman API Collection for NodeJS React Boilerplate.

Postman API Environment for NodeJS React Boilerplate.

Installation

# Configure database credentials in config.json.
# For Docker, match its local section to the MySQL settings in .env.
cp config.example.json config.json
cp .env.example .env
npm install --global yarn
yarn
yarn migrate
yarn seed:all

Running frontend

cd frontend
cp .env.example .env
yarn
yarn dev

Sequelize reference

See the Sequelize migration documentation for interacting with the application's database.

See package.json for helpful commands related to using the database. For example:

yarn seed:generate --name create-admin-user

Usage

yarn start
# Serves app to http://localhost:8000

Reload server on project files change

yarn dev

Reload server and frontend app on project files change

yarn dev:frontend

Using docker?

cp config.example.json config.json
cp .env.example .env
docker-compose --build -d

Mail Server With Docker

docker-mailhog.png

The Mailhog Docker image runs at http://localhost:8025in this app.

API Tests

NODE_ENV=test yarn test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD

About

(22-Jun-2021) An MVC NodeJS boilerplate with React 19 Redux SPA.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages