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
- Host: GitHub
- URL: https://github.com/reijjo/bet
- Owner: reijjo
- Created: 2024-07-11T15:31:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T19:35:05.000Z (over 1 year ago)
- Last Synced: 2024-10-24T06:24:02.879Z (over 1 year ago)
- Topics: bun, expressjs, pgadmin4, postgresql, react, typescript
- Language: TypeScript
- Homepage:
- Size: 2.37 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

## 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...