Umami has many recipes
- React Native - Frontend
- FastAPI - Backend
- MySQL - Database
- Nginx - Proxy
- Firebase - Auth/Storage Bucket
- Docker Compose - Build/Deployment
- Python - Scraping
- GCP Compute Engine - Hosting
To get a local copy up and running follow these simple steps.
- yarn
- docker
- docker-compose
cd
into root folder- run
docker-compose -f docker-compose.dev.yml up --build -d
Backend will be exposed on port 8080 MySQL will be exposed on port 3306
cd
into umami/frontend- run
yarn
- start server with
npx react-native start
- open a new cli window in the same folder
cd
into ios and runpod install
- run
npx react-native run-ios
- run
npx react-native run-android
- Clone repo to VM
- run
docker-compose up --build -d
- run chmod +x init-letsencrypt.sh
- run sudo ./init-letsencrypt.sh
Inide of Production machine from root umami folder
- On a local device, run
bash ./export.sh
to save a csv copy of data docker-compose down
- sudo rm -rf ./database/data
- sudo ./init-letsencrypt.sh
- run
docker-compose up --build -d
- run
python3 recipe_data_update.py
- On a local device, run
bash ./import.sh
to re-upload saved data
- Run
mysqldump -u root -p -h umami.harinwu.com -P 3306 -R umami_db > umami.sql
- Drop database with
drop database umami_db
- Create database with
create database umami_db
- Run
mysql -u root -p -h umami.harinwu.com -P 3306 umami_db < umami.sql
Contributions are what make the community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request