1
0
Fork
You've already forked dotime
0
A time registration project for registering your working time, gaining insights into how many hours you work on a weekly basis. Aiming to have features like a flex balance and registration for commuting.
  • Python 70.7%
  • HTML 28.1%
  • Shell 0.7%
  • Dockerfile 0.3%
  • CSS 0.2%
Find a file
Carsten Skov 3f2bca4f43
All checks were successful
ci/woodpecker/push/database-migration Pipeline was successful
Added condition on drop of constraint
2022年08月28日 17:31:49 +02:00
.githooks Added methods to calculate percentage worked out of norm hours 2022年03月19日 19:10:20 +01:00
.github/workflows Fixed missing s int tests 2022年07月25日 07:03:11 +02:00
.vscode Moved tests into sub folder tests in the app folder 2022年07月24日 19:50:46 +02:00
.woodpecker Adding drop of DB before creating it 2022年08月28日 16:59:00 +02:00
app fixed code style issues in routes 2022年07月25日 07:19:46 +02:00
database Added condition on drop of constraint 2022年08月28日 17:31:49 +02:00
docker Add local tools for debugging 2021年12月12日 20:05:30 +01:00
.gitignore Added settings endpoint and logout message 2022年01月20日 06:47:49 +01:00
coverage.svg Added updated coverage SVG 2022年07月25日 05:25:31 +00:00
Dockerfile Bumping container image to b4 of python 3.11 2022年07月25日 07:23:46 +02:00
pytest.ini specifically specify the app dir for pytest to test 2021年12月14日 07:17:01 +01:00
README.md Updated readme with database layout information 2022年01月28日 05:05:33 +01:00
requirements.txt Bumped docker image to python 3.11b3 and fixed issue in health impl. 2022年07月02日 20:29:38 +02:00
run_local_migration.sh Added time registration tables and upgrading to flyway 8.3.0 2021年12月29日 08:26:19 +01:00
run_server.sh Adding authentication handling and fixing some code styling 2022年01月12日 08:24:17 +01:00

code coverage Lint and Build

dotime - a time registration project

My workplace is discontinuing their timeregistration application. So I decided to try and create my own, with a Python Flask project backed by cockroachdb.

The test website is currently exposed on: https://www.dotime.me and is in a very early stage. All the groundwork is just about done. Now I am in the process of adding real functionality, starting with registration of users and login.

I am using this oppertunity to dive into TDD and automated testing. The goal is to attain high test coverage, and test all manner of things.

The list here is a start of what I'd like to end up with CI/CD, and how far I am:

Completed - CI (Github Actions)

  • Test all code --> Done with pytest
  • Do test coverage --> Done with "coverage"
  • Database migration --> Done with Flyway
  • Build docker image --> Done with Github Actions
  • Test Session management in redis

Completed - CD (ArgoCD)

  • Do Continuous Deployment --> Done with ArgoCD

Future - CI

  • Selenium tests

Future - CD

  • Automatic promotion from DEV --> TEST
  • Automatic promotion from TEST --> PROD

Database layout

The database layout is now available in the code, thanks to DbSchema layout