Commit 93e7bbc
authored
Add React build process for full-stack deployment
- Integrated React app in a 'client' directory and added a build script in the root package.json to build the frontend.
- Updated package.json with "build" script to navigate to the client directory, install dependencies, and run npm build.
- Configured Express server to serve static files from the React build directory, enabling full-stack deployment from a single server.
- Ensures production-ready React files are served alongside the Node.js backend for streamlined deployment.
This setup supports building and deploying both frontend and backend in a full-stack environment.1 parent a7e32ce commit 93e7bbc
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments