- Install dependencies
pnpm i
- Run needed services (postgres)
docker compose -f ./docker-compose-dev.yml up -d
- Generate prisma schema and migrate dev database
cd backend
pnpm prisma generate
pnpm prisma migrate dev
- Start development
pnpm dev
- Visit http://localhost:5173
frontend/
- Vue 3 application with Tailwind CSSbackend/
- NestJS API server with Prisma ORMdocker-compose-dev.yml
- Development environment configuration
pnpm dev
- Start both frontend and backend in development modepnpm build
- Build both frontend and backend for productionpnpm start:backend
- Start the backend server in production modepnpm lint
- Run ESLint on the entire projectpnpm lint:fix
- Fix ESLint issues automatically
To enable Twitch login functionality, fill in these environment variables in backend/.env
:
TWITCH_CLIENT_ID=your_client_id
TWITCH_CLIENT_SECRET=your_client_secret
TWITCH_CALLBACK_URL=http://localhost:5173/auth/callback
You can obtain these credentials by:
- Going to Twitch Developer Console
- Creating a new application
- Setting the OAuth Redirect URL to
http://localhost:5173/auth/callback
To enable weather functionality, fill in these environment variables in backend/.env
:
WEATHER_API_KEY=your_api_key
WEATHER_LAT=your_latitude
WEATHER_LON=your_longitude
You can get your API key by:
- Creating an account at OpenWeatherMap
- Going to API keys section
- Generating a new API key
To enable movie data fetching, add your Kinopoisk API key to backend/.env
:
KINOPOISK_API=your_api_key
To enable TWIR API integration, add your TWIR API key to backend/.env
:
TWIR_API=your_api_key
This API key is used for authenticating requests from TWIR to your application.
Copy the example environment file and update it with your settings:
cp backend/.env.example backend/.env
A web-based database admin interface is available at http://localhost:54321 when running the development environment.
API documentation is available at:
- Swagger UI: http://localhost:3000/docs
- Scalar API Reference: http://localhost:3000/reference
- Please make sure that you pull request to dev branch
- To become an ADMIN please change seed.js with your actual twitch login and id
- If you encounter database connection issues, make sure the PostgreSQL container is running
- For authentication problems, verify your Twitch API credentials
- Check the port configuration if services are not accessible (frontend: 5173, backend: 3000, database: 6543)