web-planer icon indicating copy to clipboard operation
web-planer copied to clipboard

refactor: move backend to elysia

Open qamarq opened this issue 10 months ago • 1 comments

wersja backendu w elysiajs


[!IMPORTANT] Refactor backend to Elysia framework, update frontend for new backend structure, and configure CI, Docker, and environment settings.

  • Backend Refactor:
    • Migrated backend to Elysia framework (src/index.ts, controllers/*, routes/*).
    • Added JWT authentication setup in setups/jwt.ts.
    • Implemented controllers for auth, courses, departments, groups, registrations, schedules, shared, and user.
    • Configured Prisma ORM with prisma/schema.prisma and lib/db.ts.
    • Added email functionality using nodemailer in lib/email.ts.
    • Added USOS client for OAuth in lib/usos/usos-client.ts.
    • Added CI workflow in .github/workflows/backend_v2_ci.yaml.
  • Frontend Updates:
    • Updated auth function in lib/auth/index.ts to support Elysia.
    • Modified actions in actions/plans.ts and actions/user.ts to use Elysia authentication.
    • Updated package.json dependencies for both backend and frontend.
  • Miscellaneous:
    • Added Docker support with Dockerfile and .dockerignore.
    • Configured environment variables in .env.example.
    • Added Prettier configuration in .prettierrc.
    • Updated .gitignore for backend.

This description was created by Ellipsis for 20d20a579a96787649529b97d917137ca1d63531. It will automatically update as commits are pushed.

qamarq avatar Mar 12 '25 08:03 qamarq

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-03-18 18:08:07 CET

solvro-coolify[bot] avatar Mar 18 '25 18:03 solvro-coolify[bot]