Skip to content

royrusso/react_express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite+React with Node backend

A sandbox on how to get Vite+React app to be served from a Node backend.

Development Mode

Development mode let's you run the Vite+React app and the Node backend separately.

Vite+React

cd frontend
npm install
npm run dev

UI will be served at http://localhost:5173/ by default.

Node backend

cd backend
npm install
npm run dev

Server will be served at http://localhost:3000 by default.

Production Mode

Production mode let's you run the Vite+React app and the Node backend together.

Add dependencies

cd frontend
npm install
cd backend
npm install
cd ..
npm install

Run the app

npm run build
npm run dev

UI should be served from the backend at http://localhost:3000 by default.

About

A sandbox on how to get Vite+React app to be served from a Node backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors