The deploy is located at (render)
Betting with friends on the outcome of a football game has never been more exciting than it is today. Over the recent years, this phenomenon has taken on a new dimension, with numerous applications emerging to facilitate this experience. This README provides an overview of our betting app, outlining its purpose and functionality.
Our betting app simplifies the process for users, following a straightforward flow:
- Sports Events Display: A variety of upcoming sports events are presented to the user.
- User Bet Placement: Users can place bets within a specific sports event, predicting outcomes such as the winner of a football match (e.g., Flamengo vs. Botafogo).
- Event Outcome: Once the sports event concludes, users who correctly predicted the outcome receive a monetary reward.
- Prisma ORM
- PostgreSQL Database
- Typescript
- Express
To run the application, follow these steps:
- Clone the repository by running
git clone https://github.com/andreymudri/betting_platform_challenge.git- Install the dependencies by running
cd betting_platform_challenge && npm install- Start the application by running
npm run devAlternatively you can use Docker
Make sure you have Docker installed on your machine. If not, you can download and install it from the official Docker website: Get Docker
docker compose build
docker compose up
Access the Application Once the container is running, you can access your application by opening a web browser and navigating to http://localhost:3000.
Stop and Remove the Container When you're done using the application, you can stop and remove the Docker container with the following commands:
docker stop container_id
docker rm container_idReplace container_id with the actual container ID or name. You can find the container ID by running docker ps or docker ps -a to list all containers.
- Clone the repository by running
-
git clone https://github.com/andreymudri/betting_platform_challenge.git
3. Install the dependencies by running
```bash
cd betting_platform_challenge && npm install
-
It is also needed to create a .env file inside the base folder with:
DATABASE_URL - Self explanatory
PORT - For your application, else itll just use the default -
Start the application by running
npm run dev