Skip to content

Kfey8/react-app-expressjs-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. npm install
  2. Configure .env file based on .env.example
  3. Run npm start for local development or npm run build for the production build of the app

Environment

REACT_APP_BASENAME=/app
PUBLIC_URL=/app

Parameter Description Required
REACT_APP_BASENAME This is the basename for the React App. It's needed for the Nginx location block Yes
PUBLIC_URL This is the basename for the React App. It's needed during build time for the static files Yes

About

This repo shows an example on how to deploy a React app using Nginx and Expressjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.3%
  • CSS 39.1%
  • HTML 5.5%
  • Shell 0.1%