Application de gestion de résolutions d'instances démocratiques
- Go 59.8%
- HTML 17.2%
- JavaScript 12%
- CSS 8.7%
- PLpgSQL 1%
- Other 1.3%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| cmd/resolutions | ||
| queries | ||
| ui | ||
| .gitignore | ||
| build.go | ||
| client.go | ||
| client_test.go | ||
| compose.yaml | ||
| config.go | ||
| db.go | ||
| Dockerfile | ||
| entity.go | ||
| flag.go | ||
| go.mod | ||
| go.sum | ||
| handler.go | ||
| handler_ui.go | ||
| LICENSE | ||
| Makefile | ||
| middleware.go | ||
| README.md | ||
| response.go | ||
| route.go | ||
| server.go | ||
| src.Dockerfile | ||
| test.compose.yaml | ||
| validate.go | ||
Resolutions
Resolutions!!!!
Requirements
dockerdocker composemake
Deployment
Deployment Local
- Copier et configurer le fichier d'environnement :
# .env
RESOLUTIONS_SERVER_API_POSTGRES_DATABASE='resolutions'
RESOLUTIONS_SERVER_API_POSTGRES_HOST='db'
RESOLUTIONS_SERVER_API_POSTGRES_PASSWORD='resolutions'
RESOLUTIONS_SERVER_API_POSTGRES_USER='resolutions'
- Démarrer les conteneurs :
make deploy
- Insérer les données de seed (requiert les conteneurs en marche) :
make seed
- Accéder à l'interface :
| Service | URL |
|---|---|
| UI | http://localhost:2312 |
| API | http://localhost:8080 |
Tests
# test.env
RESOLUTIONS_SERVER_API_POSTGRES_DATABASE='resolutions'
RESOLUTIONS_SERVER_API_POSTGRES_HOST='db'
RESOLUTIONS_SERVER_API_POSTGRES_PASSWORD='resolutions'
RESOLUTIONS_SERVER_API_POSTGRES_USER='resolutions'