This project was generated using Angular CLI version 21.2.2.
To start a local development server, run:
ng serveOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpTo build the project run:
ng buildThis will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Vitest test runner, use the following command:
ng testFor end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.
This repository now includes container and Kubernetes manifests for deploying frontend + backend:
- Frontend Docker image:
Dockerfile.frontend - Backend Docker image:
Dockerfile.backend - Kubernetes manifests:
k8s/
Deployment guide:
Right now, your site content is not only static:
- Default/fallback text lives in code (
src/app/data/site-content.data.ts) - Admin-edited text is saved on backend in
backend/data/store.json - In Kubernetes this file is persisted via PVC (
backend-data)
So your live site already uses persisted dynamic content, but with a JSON-file store.
If you want a real database (recommended for production), use:
- PostgreSQL (DigitalOcean Managed DB preferred)
- Add a
contenttable +userstable +audit_logstable - Backend reads/writes DB instead of
store.json - Then backend can scale safely to multiple replicas
From project root (PowerShell):
.\deploy\rebuild-and-redeploy.ps1 -ServerIp "159.65.121.203" -SshKeyPath "C:\Users\Oto\Desktop\id_irs"This script does all of it:
- Build frontend and backend images
- Save tar files
- Upload to server
- Import into k3s containerd
kubectl apply -k k8s- Restart and wait for rollouts
- Run smoke checks
# Check pods
kubectl get pods -n wedding-site -o wide
# Check frontend/backend logs
kubectl logs -n wedding-site deploy/wedding-frontend --tail=100
kubectl logs -n wedding-site deploy/wedding-backend --tail=100
# Check ingress
kubectl get ingress -n wedding-site
# Health check
curl.exe https://www.elitewe.com.ge/health- Create a PostgreSQL database (DigitalOcean Managed PostgreSQL recommended).
- Put DB connection in Kubernetes secret:
kubectl create secret generic wedding-secrets `
-n wedding-site `
--from-literal=DATABASE_URL='postgresql://USER:PASSWORD@HOST:25060/DBNAME?sslmode=require' `
--from-literal=DATABASE_SSL='true' `
--from-literal=PGSSLMODE='require' `
--dry-run=client -o yaml | kubectl apply -f -- Apply manifests and restart backend:
kubectl apply -k k8s
kubectl rollout restart deployment/wedding-backend -n wedding-site
kubectl rollout status deployment/wedding-backend -n wedding-site --timeout=180s- Verify backend is healthy:
curl.exe https://www.elitewe.com.ge/healthNotes:
- First startup with
DATABASE_URLauto-imports existingstore.jsoninto PostgreSQL if DB is empty. - After migration, app state is read/written from PostgreSQL.