https://github.com/tilt-dev/tilt-frontend-demo
https://github.com/tilt-dev/tilt-frontend-demo
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tilt-dev/tilt-frontend-demo
- Owner: tilt-dev
- Created: 2019-02-15T17:11:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T19:54:20.000Z (about 5 years ago)
- Last Synced: 2025-04-18T07:52:05.837Z (about 1 year ago)
- Language: JavaScript
- Size: 479 KB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example React app with Tilt
Requirements: [Tilt](https://tilt.dev/)
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
A Webpack Dev Server hot reloads a React app, all running inside Kubernetes.
With a local Kubernetes environment, run:
```
tilt up
```
If you get errors trying to push to tilt-frontend-demo, that means
you're not using a local Kubernetes environment (like Docker For Mac or Minikube).
See [the FAQ](https://docs.tilt.dev/faq.html#q-how-do-i-change-what-kubernetes-cluster-tilt-uses) for more info.
Tilt will assemble an image, deploy the app, and live update it in Kubernetes.
View the app at http://localhost:3000/
When you make a change to [src/App.js](src/App.js), Tilt will sync the file to the container.
For more details on how this works, see [Node.js Microservice with Hot Reloading](https://docs.tilt.dev/nodejs_microservice_hotreloading.html)