Home Media Application
A full-stack monorepo containing the:
- Backend: Java 21/Maven/Spring Boot
- Web: Vue.js
pnpm devstart the stackpnpm dev:webstart just the web frontendpnpm dev:backendstart just the backend
- Java 21+
ffmpeginstalled locally
An API dashboard is available when the backend is running: Swagger
An SDK can be generated with the command pnpm generate-sdk which runs the openapi-generator-cli tool on a running backend to generate typescript schemas based on the backend models.
This is helpful as it reduces the amount of typescript schemas we have to maintain.
The default admin credentials are admin:Admin123!
- Hit
/auth/loginendpoint with the body:{ "username": "admin", "password": "Admin123!" } - An access token is granted in the
Authorizationheader, and is required for all API requests. - A refresh token is also granted in your Cookies (
refreshTokencookie), and has a longer lifespan. To avoid logging in every time, hit/api/refresh. This will grant anotherAuthorizationaccess token
With the backend running:
- Navigate to Swagger
- Click "Authorize", and paste in your
Bearer ey...access token