This is the static files for my website. Run via ReactJS
Start via npm start
- React material ui (you can refer to the subdirectory src/App/Themes/README.md for this) for the button design
- react-burger-menu for the burger menu
- react-socks for the mobile-responsive web design
- react-router-dom for the easy routing of endpoints
- run the following
cd react-app
npm run build
- Go to google cloud > cloud storage > bucket
- upload build folder and if first time, also upload app.yaml
- Go to GCP shell and set project
- create directory and run
gsutil rsync -r gs://bucketname newdirectory
cd newdirectory
gcloud app deploy
- Go to google cloud > open cloud shell
- run the following
cd my-website
git pull
cd react-app
npm i
npm run build
gsutil rsync -r gs://bucketname build
This is caused by react router only having index as the root, and thus routing itself. Solution is to rewrite all uri path (/*) to /index At DNS level or at load balancer level. For more information: https://render.com/docs/deploy-create-react-app