The Ultimate Tool for the Students of my School.
Post Mortem
This project is now unmaintained. A demo is available here.
Before running the backend:
- Make sure you have a firebase project setup.
- Download it's
service_account.json
and copy it to./UGWBackend/db-middleware/service_account.json
- Make sure Docker and Docker-compose are installed
- Run
cd UGWBackend && docker-compose build
anddocker-compose up
with the following environment variables:- SECRET - used to sign JWTs
- MAIL_JET_USER
- MAIL_JET_KEY
- REDIS_PATH =
redis://cache:6379/
- INSTA_CID
- INSTA_SECRET
- Edit
UGWFrontend/src/environments/environment.prod.ts
to replacepushPublicKey
with the VAPID PUBLIC KEY you see as output. Make sure the URLs point to your backend. - run
ng build --prod
- Make sure the frontend (in
UGW/Frontend/dist
) is hosted somewhere with 404 redirects toindex.html
..
When running in development:
- Make sure you set the correct values in the
main.rs
file - Make sure you run the backend using
env DEVELOPMENT=true SECRET=AAAA MAIL_JET_USER=AAAA MAIL_JET_KEY=AAAA REDIS_PATH=AAAA INSTA_CID=AAAA INSTA_SECRET=AAAA cargo run
and replaceAAAA
- Run the db middleware using
env SECRET=AAAA
and replaceAAAA
- Serve the frontend using
ng serve
Open "docs/ugw-router.xml" on draw.io