Matcha is a full-stack dating web application featuring authentication (including 42 OAuth), user profiles, likes/matches, Block/report, real-time notifications, and real-time chat.
- Docker
- Docker Compose
Create a file named .env in the project root:
POSTGRES_USER=matcha
POSTGRES_PASSWORD=matcha
POSTGRES_DB=matcha
POSTGRES_PORT=5432Create a file named .env inside the backend/ folder:
APP_PORT=8000
INFO_MODE=true
ERROR_MODE=true
JWT_SECRET=RANDOM
BACKEND_ENDPOINT=
FORTYTWO_CLIENT_ID=u-sxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
FORTYTWO_CLIENT_SECRET=s-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
FORTYTWO_CALLBACK_URL=http://127.0.0.1:8080/api/oauth/42/callback
FRONTEND_URL=http://127.0.0.1:8080/
SMTP_HOST=smtp.mailersend.net
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=edit it after(MS_NP9sZi@test-xkjn41mqqj94z781.mlsender.net****)
SMTP_PASS=edit(**mssp.JO9vyDy.zr6ke4nkxe34on12.OjUznP9**)
SMTP_FROM=123("Matcha MS_NP9sZi@test-xkjn41mqqj94z781.mlsender.net")Create a file named .env.local inside the frontend/ folder:
NEXT_PUBLIC_BACKEND=/apiFrom the project root directory:
docker-compose up -d- Frontend: http://127.0.0.1:8080/
- Backend API (proxied through frontend): http://127.0.0.1:8080/api
docker-compose down