Skip to content

A web application that manages cooking recepies, suggests meals for the upcoming week, and adds the required ingredients to a shopping list.

Notifications You must be signed in to change notification settings

m-breitbach/omnom

Repository files navigation

omnom

A web application that manages cooking recepies, suggests meals, and adds the required ingredients to a shopping list. Beyond its real use case, to me it serves as a learning project for how to set up a full stack dockerized web application.

Flows

Docker setup on server

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
rm get-docker.sh
sudo usermod -aG docker ${USER}

Docker registry setup on server

docker pull registry
mkdir certs
sudo cp /etc/letsencrypt/live/example.com/* certs
mkdir auth
docker run --entrypoint htpasswd httpd -Bbn user password > auth/htpasswd
docker run -d \
  --restart=always \
  --name registry \
  -v "$(pwd)"/certs:/certs \
  -e REGISTRY_HTTP_ADDR=0.0.0.0:5000 \
  -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/fullchain.pem \
  -e REGISTRY_HTTP_TLS_KEY=/certs/privkey.pem \
  -p 5000:5000 \
  registry

Run locally (full stack)

sudo echo "127.0.0.1 omnom-auth" >> /etc/hosts
set -a; source .env; set +a;
jabba use [email protected] 
pushd omnom-backend; mvn clean package -Dquarkus.profile=localhost -DskipTests; popd
#docker build -f omnom-backend/Dockerfile -t omnom-backend ./omnom-backend
#pushd omnom-frontend; ng build --configuration development; popd
#docker build -f omnom-frontend/Dockerfile -t omnom-frontend ./omnom-frontend
docker-compose up

Run locally (frontend)

sudo ng serve --host 127.0.0.1 --port 80

Push to registry

docker tag omnom-backend:latest example.com:5000/omnom-backend 
docker push example.com:5000/omnom-backend 

Links

Authentication / Keycloak

Database / Postgres

Backend / Quarkus

Frontend / Angular

Docker

Deployment

About

A web application that manages cooking recepies, suggests meals for the upcoming week, and adds the required ingredients to a shopping list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published