- Frontend: Vite + TypeScript
- Backend: Golang
- Database: MySQL
Ensure you have the following installed:
- Git
- Docker
- NPM
- Go
- MySQL
cd frontend
cp .example.env .env
- For local development:
BACKEND_PATH='http://localhost:5000/api/v1'
- For Docker deployment:
BACKEND_PATH='http://go-server:5000/api/v1'
npm install --legacy-peer-deps
cd frontend
npm run dev -- --open
The server will automatically reload after code changes.
go mod download
go run cmd/main.go
- Before opening a pull request
npm run format
gofmt -w .
npm run lint
gofmt -l -d .
Run the project with Docker:
docker-compose up --detach --build
If go.mod
or go.sum
has changed, rebuild the Go server image:
docker-compose up go-server
docker-compose up mysql-db
Place .sql
files inside the db
folder.
If you have MySQL installed:
mysql -h localhost -P 3306 -u root -p
If you do not have MySQL installed:
docker exec -it <containerName> mysql -u root -p
docker-compose down