You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Clone the repository
git clone https://github.com/yourusername/lik_tok.git
cd lik_tok
# Start all servicescd deploy/docker && docker-compose up -d
# Access the application
open http://localhost
🛠️ Development Setup
Option 1: Docker Development (Recommended)
cd deploy/docker
# Build and start
docker-compose up -d --build
# View logs
docker-compose logs -f
# Stop services
docker-compose down
Option 2: Local Development
Requirements:
Go 1.25+
Node.js 20+
MySQL 8.0
Redis 7+
RabbitMQ 3.12
Launch Script:
# Start backend (API + Worker) and frontend
./start-local.sh
# Or manual startup# Terminal 1: API Servercd backend && go run cmd/main.go
# Terminal 2: Workercd backend && go run cmd/worker/main.go
# Terminal 3: Frontendcd frontend && npm install && npm run dev
⚠️Note: Docker and local development cannot run simultaneously due to port conflicts.
⚙️ Configuration
Unified Credentials
Service
Username
Password
MySQL
root
123456
Redis
-
123456
RabbitMQ
guest
guest
Configuration Files
Environment
File Path
Local
backend/configs/config.yaml
Docker
backend/configs/config.docker.yaml
Configuration Example
server:
port: 8080database:
host: localhost # or 'mysql' for Dockerport: 3306user: rootpassword: "123456"dbname: Lik_tokredis:
host: localhost # or 'redis' for Dockerport: 6379password: "123456"rabbitmq:
host: localhost # or 'rabbitmq' for Dockerport: 5672username: guestpassword: guest