Skip to content

drosth/hourstracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to...

Start application

Start from command-line

> hourstracker$  sbt 'project rest' clean run

Start from Docker (wip)

  1. Build and publish new docker image:
    sbt clean docker:publishLocal
  2. Start new docker image:
    gradle runDocker
  3. To see if the application is working, open the swagger-ui page ((http://0.0.0.0:8080))

Import updated registered hours

  1. Start application
  2. Update file: resources/import/CSVExport.csv
  3. In a browser open:
    http://0.0.0.0:8080/api/v1/registrations/import
  4. or, when using the shell, execute:
using execute
curl curl --request GET --url http://0.0.0.0:8080/api/v1/registrations/import
http http GET http://0.0.0.0:8080/api/v1/registrations/import
wget wget http://0.0.0.0:8080/api/v1/registrations/import

Download registered hours as .PDF file

  1. Start application
  2. Import updated registered hours
  3. Retrieve the so called 'consolidated registrations':
    1. In a browser open:
      http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated,
      for instance: http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated

    2. or, when using the shell, execute:

using execute example
curl curl --request GET --url http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated curl --request GET --url http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated
http http GET http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated http GET http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated
wget wget http://0.0.0.0:8080/api/v1/registrations/{year}/{month}/consolidated wget http://0.0.0.0:8080/api/v1/registrations/2019/1/consolidated

N.B.: when done, the location of the generated .PDF files will be shown in JSON format, for example:

[
    ["/opt/resources/export/[Timesheet] - de Persgroep Online Services - DPES004 - jan-2019.pdf"]
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published