Skip to content

fire015/express-react-template

Repository files navigation

Express + React Template

An opinionated monorepo of running dev and prod versions of Express (backend API) and React (frontend).

Dev runs on localhost, prod runs on SSL secured domain.

Tested with Node.js 22.

Local Development

Run npm install from the root folder to install all package dependencies, then start by running npm run dev.

To install a new dependency, cd inside the relevant packages folder first.

Copy .env.default files to .env and run MySQL through docker compose up -d.

Production

Replace app.my-project.com with the correct domain in docker-compose.prod.yml for SSL, then run docker compose -f docker-compose.prod.yml up -d --build.

About

Monorepo for running Express and React together in dev & prod

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published