https://github.com/ndrean/superm-v1
online shopping project React Tutorial using React Router. Saving to localStorage
https://github.com/ndrean/superm-v1
react react-router stripe
Last synced: about 2 months ago
JSON representation
online shopping project React Tutorial using React Router. Saving to localStorage
- Host: GitHub
- URL: https://github.com/ndrean/superm-v1
- Owner: ndrean
- Created: 2021-01-05T22:51:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-08T13:11:16.000Z (over 5 years ago)
- Last Synced: 2025-08-02T15:43:57.621Z (11 months ago)
- Topics: react, react-router, stripe
- Language: JavaScript
- Homepage:
- Size: 238 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Final Project React Tutorial /JJ, using React Router
## React Router
## State managed by React (state lifting and prop drilling)
## Docker running **dev mode** reverse proxied by Nginx
Run 2 containers, one **Node/Yarn** and the reverse proxy **Nginx**
- run two services Node/React/app + reverse proxy Nginx on network with `docker-compose`.
> Note: the React app service is named "app" and the Nginx.conf file has `proxy_pass http://app:3000` where we use the service name "app".
> Pay attention to nginx.conf with: `listen 80 default_server; resolver 127.0.0.11 valid=1s;` and `proxy_pass http://app:3000;` in directive `location`.
- the Node container runs the code with `yarn start`
- the Nginx container reverse proxies on http://localhost:8080. Created folder
- code is bind mounted for live code with CTRL R to update