An open API service indexing awesome lists of open source software.

https://github.com/reijjo/bet

Track your bets
https://github.com/reijjo/bet

bun expressjs pgadmin4 postgresql react typescript

Last synced: about 2 months ago
JSON representation

Track your bets

Awesome Lists containing this project

README

          

# bet

## What is this?

Place where you can track your bets
- You can finally ditch the annoying Excel Sheets that are impossible to update with your phone.
Screenshot 2025-04-20 at 20 52 33

## How to use?

Try it live here
- Frontend is deployed with `Cloudfare pages`
- Database is deployed in `AWS RDS`
- Backend is deployed with `AWS EC2`

### Locally
Install `Docker` and `Bun`
#### Frontend
- Go to `bet/client` folder
- Rename `env` file to `.env`
- Run `bun install`
- Start frontend with `bun run dev` and go to http://localhost:5173/
#### Backend
- Go to `bet/server` folder
- Rename `env` file to `.env` and fill in the blanks
- Run `bun install`
- Start backend with `bun run dev`
- Backend is running at http://localhost:3000/
#### Database
Make sure you have `Docker` running
- Go to `bet/server` folder
- Start database with `docker compose up`
- `pgAdmin` is running at http://localhost:5050/

## Tech stuff

### With what?

This project is done with `React`, `TypeScript`, `Expressjs` and `CSS`
- `RTK query` for queries
- `Redux` for state managment
- `PostgreSQL` and `Sequelize` for database
- `Sessions` for user managment

## Testing
- Frontend `vitest`
- Backend `bun:test`
- E2E `Playwright` (coming later...)

### Frontend
Go to frontend folder (client)
- `bun run test` to run unit tests
- `bun run test:cover` to run unit tests and see the test coverage

### Backend
Go to backend folder (server)
- `bun run test` to run unit tests
- `bun run test:cover` to run unit tests and see the test coverage

### End-to-end
coming...