ELXOLDING ERP - ERP system for tracking inventory using RFID technology.
- UHR - Unified Hourly Rate
Clone the repository
git clone https://github.com/iota-uz/iota-erp.gitInstall dependencies
go get -u ./...Install tailwindcss globally
pnpm install -g tailwindcss
# or
npm install -g tailwindcssRun postgres
docker compose -f docker-compose.dev.yml up -dRun migrations
sql-migrate upRun in watch mode (hot reload)
airRun templ in watch mode
templ generate -watchRun tailwindcss in watch mode
tailwindcss -c tailwind.config.js -i internal/assets/css/main.css -o internal/assets/css/main.min.css --minify --watchNow open postman and explore the GraphQL schema at http://localhost:3200/query
Get all employees and their positions
query Users {
users(limit: 10, offset: 0) {
total
data {
id
email
firstName
lastName
avatar {
id
size
}
}
}
}Run linter
golangci-lint runRegenerate from GraphQL schema
go generate ./...Running migrations
go run cmd/migrate/main.go upRolling back migrations
go run cmd/migrate/main.go downRedoing migrations (useful for development)
sql-migrate redoMaking a migration
sql-migrate new <migration-name>Running tests
go test -v ./...Running tests with coverage
go test -coverprofile coverage/coverage.out ./...
go tool cover -html=coverage/coverage.outRunning the server
go run cmd/server/main.goFormat templ files
templ fmt .User: Admin User
Password
TestPass123!
To connect to staging db:
Hostname: elxolding-erp.ci.iota.uz
Port: 17899
Database: elxolding_db
Username: postgres
Password: EU4n3y8XeK8hia0L