Compare commits
2 Commits
cd46b3eb52
...
docs/mypla
| Author | SHA1 | Date | |
|---|---|---|---|
| 71f7129851 | |||
| a89c77e0eb |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -21,4 +21,3 @@
|
||||
# Go workspace file
|
||||
go.work
|
||||
|
||||
config/private
|
||||
2
LICENSE
2
LICENSE
@@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
Copyright 2022 Janic Voser
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
35
README.md
35
README.md
@@ -1,3 +1,36 @@
|
||||
# GoHome
|
||||
|
||||
A repository to make a workhour report, which remids you of going home. Keep your Work Life balance
|
||||
A repository to make a workhour report, which remids you of going home. Keep your Work/Life Balance __<-- Do you see the Ironie?__
|
||||
|
||||
|
||||
# Repository Structure
|
||||
coming soon
|
||||
|
||||
# Versions
|
||||
See more in the [versions.md](./docs/versions.md)
|
||||
| Wich Version | When released |
|
||||
| --- | --- |
|
||||
| alpha | tbd |
|
||||
| beta | tbd |
|
||||
| 1.0 | tbd |
|
||||
# Technologies
|
||||
All the greate technologies used for this project
|
||||
## Automated Builds & Tests
|
||||
All builds and tests are done with [drone](https://www.drone.io/)
|
||||
For the automated deployment I user [argocd](https://argoproj.github.io/cd/)
|
||||
|
||||
## Database
|
||||
For a database I use [mariadb](https://mariadb.org/)
|
||||
|
||||
## Containers
|
||||
As an container registry I use [VMWare Harbor](https://goharbor.io/) and [Docker Hub](https://hub.docker.com/)
|
||||
|
||||
## Languages
|
||||
+ GoLang --> for Backend
|
||||
+ HTML --> Layouting
|
||||
+ SASS --> Make it beautiful (well at least I try)
|
||||
+ TypeScript --> Cause I have to
|
||||
|
||||
## Frameworks
|
||||
+ Ionic for front-end
|
||||
+ Gin for back-end
|
||||
@@ -1,14 +0,0 @@
|
||||
# Database Config
|
||||
## Database Port
|
||||
DB_PORT="3306"
|
||||
## Database User
|
||||
DB_USER="dbuser"
|
||||
## Database Port
|
||||
DB_PORT="testdb"
|
||||
## Database name
|
||||
DB_NAME="testdb"
|
||||
|
||||
# Port Mapping
|
||||
FRONTEND_PORT="30381"
|
||||
BACKEND_PORT="30382"
|
||||
HAPROXY_PORT="80"
|
||||
24
docs/versions.md
Normal file
24
docs/versions.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Versions
|
||||
| Version | Describtion | Release Date |
|
||||
| --- | --- | --- |
|
||||
| Alpha | Base functionallity | tbd |
|
||||
| Beta | Bug fix & improvments from Alpha | tbd |
|
||||
| 1.0 | First Version | tbd |
|
||||
| 1.1 | Bug fix & improvments to Version 1.0 | tbd |
|
||||
|
||||
# Features ✅ / ❌
|
||||
| ID | Version | Name | Description | Author | Requested by | Working |
|
||||
| --- | --- | --- | --- | --- | --- | --- |
|
||||
| 0 | alpha | Login Site | Working Login Site | Janic Voser | Janic Voser | ❌ |
|
||||
| 1 | alpha | Add User | Add Site User | Janic Voser | Janic Voser | ❌ |
|
||||
| 2 | tbd | Add Groups | Add Groups | Janic Voser | Janic Voser | ❌ |
|
||||
| 3 | tbd | Organizations | Manage Organizations | Janic Voser | Janic Voser | ❌ |
|
||||
| 4 | alpha | Starttime | Set beginning of work | Janic Voser | Janic Voser | ❌ |
|
||||
| 5 | alpha | Endtime | Set end of work | Janic Voser | Janic Voser | ❌ |
|
||||
| 6 | alpha | Pause | Substract Pausetime | Janic Voser | Janic Voser | ❌ |
|
||||
| 7 | beta | Multi Pause | Substract multiple Pausetimes | Janic Voser | Janic Voser | ❌ |
|
||||
| 8 | alpha | Expected work time | Time to work daily | Janic Voser | Janic Voser | ❌ |
|
||||
| 9 | beta | Time Credit | Positiv & negativ Time credits | Janic Voser | Janic Voser | ❌ |
|
||||
| 10 | tbd | Nice Graphs | Display nice Graphs of the work time | Janic Voser | Janic Voser | ❌ |
|
||||
| 11 | beta | Backup | Backup Database & Assets | Janic Voser | Janic Voser | ❌ |
|
||||
| 12 | beta | Profile Picture | Upload Profile Picture for Users | Janic Voser | Janic Voser | ❌ |
|
||||
@@ -1,5 +0,0 @@
|
||||
# HAPROXY
|
||||
The Haproxy is used to route the requests to the diffrent backends & location
|
||||
--> Only for local deployment
|
||||
--> On kubernetes you can use an ingress for this
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
global
|
||||
stats socket /var/run/api.sock user haproxy group haproxy mode 660 level admin expose-fd listeners
|
||||
log stdout format raw local0 info
|
||||
|
||||
defaults
|
||||
mode http
|
||||
timeout client 10s
|
||||
timeout connect 5s
|
||||
timeout server 10s
|
||||
timeout http-request 10s
|
||||
log global
|
||||
|
||||
frontend stats
|
||||
bind *:8404
|
||||
stats enable
|
||||
stats uri /
|
||||
stats refresh 10s
|
||||
|
||||
frontend myfrontend
|
||||
bind :80
|
||||
default_backend webservers
|
||||
|
||||
backend webservers
|
||||
server s1 web1:8080 check
|
||||
server s2 web2:8080 check
|
||||
server s3 web3:8080 check
|
||||
@@ -1,8 +0,0 @@
|
||||
version: 3
|
||||
services:
|
||||
haproxy:
|
||||
image: haproxy:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
voluems:
|
||||
- ./config/haproxy.cfg:/usr/local/etc/haproxy:ro
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Variables
|
||||
|
||||
# Funcitons
|
||||
function loadconfig {
|
||||
source config/public
|
||||
source config/private
|
||||
}
|
||||
|
||||
# Main Script
|
||||
loadconfig
|
||||
|
||||
echo $BACKEND_PORT
|
||||
62
makefile
62
makefile
@@ -1,62 +0,0 @@
|
||||
all: database backend frontend
|
||||
|
||||
# Database
|
||||
database: database-stop database-clean databgase-start database-init
|
||||
|
||||
database-stop:
|
||||
|
||||
database-start:
|
||||
|
||||
database-restart: database-stop database-start
|
||||
|
||||
database-clean:
|
||||
|
||||
database-init:
|
||||
|
||||
# Backend
|
||||
backend:
|
||||
|
||||
backend-restart:
|
||||
|
||||
backend-rebuild:
|
||||
|
||||
backend-image-push:
|
||||
|
||||
# Frontend
|
||||
|
||||
frontend:
|
||||
|
||||
frontend-stop:
|
||||
|
||||
frontend-start:
|
||||
|
||||
frontend-restart: frontend-stop frontend-start
|
||||
|
||||
frontend-clean:
|
||||
|
||||
frontend-rebuild:
|
||||
|
||||
frontend-image-push:
|
||||
|
||||
# Haproxy - Only used for local
|
||||
|
||||
haproxy:
|
||||
|
||||
haproxy-stop:
|
||||
|
||||
haproxy-start:
|
||||
|
||||
haproxy-restart: haproxy-stop haproxy-start
|
||||
|
||||
# Config Templating - Only used for local
|
||||
|
||||
reconfigure: reconfigure-database reconfigure-backend reconfigure-frontend
|
||||
|
||||
reconfigure-database:
|
||||
|
||||
reconfigure-backend:
|
||||
|
||||
reconfigure-frontend:
|
||||
|
||||
reconfigure-haproxy:
|
||||
./haproxy/reconfigure-haproxy.sh
|
||||
Reference in New Issue
Block a user