This is a full-stack online betting application with a React frontend, NestJS (Express) backend, and PostgreSQL database. The project is containerized using Docker for easy deployment and local development.
Before running the project, ensure you have the following installed:
- Docker & Docker Compose
- Node.js v20+ and Yarn v1.22.22 (for local development without Docker)
Using Docker is the easiest way to set up the project.
git clone https://github.com/Perchusha/gamdom-test-task.git
cd gamdom-test-taskdocker-compose up --build -dThis will start:
- Backend (
http://localhost:5000) - Frontend (
http://localhost:5173) - PostgreSQL Database (
localhost:5432)
docker psdocker exec -it betting_backend yarn seeddocker-compose downIf you prefer to run the project manually, follow these steps:
yarn installyarn workspace @gamdom/backend devyarn workspace @gamdom/frontend startyarn workspace @gamdom/backend seedPress Ctrl + C in each terminal to stop the running services.
- View logs of a running container:
docker logs -f betting_backend
- Check running processes:
docker ps
A Postman collection is included for easy API testing.
-
Import Collection:
Open Postman, go to File → Import, and selectpostman_collection.json. -
Setup Environment:
Use thepostman_environment.jsonfile or manually configure environment variables inside Postman. -
Run Requests:
Once imported, you can test endpoints directly from Postman.