FoseFx / UltimateGymWue

The Ultimate Tool for students of my school.

Home Page:https://fosefx.github.io/Project-Demos/UGW/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UltimateGymWue Build Status codecov cypress

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:

  1. Make sure you have a firebase project setup.
  2. Download it's service_account.json and copy it to ./UGWBackend/db-middleware/service_account.json
  3. Make sure Docker and Docker-compose are installed
  4. Run cd UGWBackend && docker-compose build and docker-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
  5. Edit UGWFrontend/src/environments/environment.prod.ts to replace pushPublicKey with the VAPID PUBLIC KEY you see as output. Make sure the URLs point to your backend.
  6. run ng build --prod
  7. Make sure the frontend (in UGW/Frontend/dist) is hosted somewhere with 404 redirects to index.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 replace AAAA
  • Run the db middleware using env SECRET=AAAA and replace AAAA
  • Serve the frontend using ng serve

Open "docs/ugw-router.xml" on draw.io

About

The Ultimate Tool for students of my school.

https://fosefx.github.io/Project-Demos/UGW/index.html


Languages

Language:TypeScript 56.2%Language:Rust 19.1%Language:JavaScript 12.3%Language:HTML 8.5%Language:CSS 3.1%Language:Dockerfile 0.4%Language:Shell 0.3%