Skip to content

seenode/example-react-with-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React SPA with Express on Seenode

This example deploys a React single-page app built with Vite, served by a Node static server (Express) with SPA fallback, for deployment on Seenode.

See the full guide: Deploy React SPA on Seenode.

Run locally

npm install
npm run client:install
npm run client:build
npm start

Visit http://localhost:8080.

Deploy on Seenode

  1. Connect this repo in the Seenode dashboard (New Web Service).
  2. Set commands:
    • Build: npm install && npm run client:install && npm run client:build
    • Start: node server.js
  3. Set Port field to 8080 (matches server.js).
  4. Deploy.

Project layout

/
├─ server.js           # Express static server + SPA fallback
├─ package.json        # Root scripts and Express dep
└─ client/             # React app (Vite)
   ├─ index.html
   ├─ package.json
   ├─ vite.config.js
   └─ src/
      ├─ main.jsx
      └─ App.jsx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published