A Time Tracking application server. Needs a Postgres Database and a client.
2.7K
A node Time Tracking application server. Needs a Postgres Database and a client.
Dockerhub: https://hub.docker.com/r/25thfloor/ttrack-server/
Our setups always include a Makefile which helps with the setup. Needs Docker!
To see all possible targets just enter make to your cli.
Targets:
up: Starts the whole development stack
start: Start the stack in detached mode
rm: remove the development stack
yarn: to call yarn commands in the running development stack like for example make yarn test to run the tests.
shell: get a shell within the server container
postgres: get a shell within the postgres container
Just call make up and it will start the node server in development mode and a postgres database instance with some basic database setup.
The node server will expose port 8000 and 8001 while postgres will expose 5432 for development purposes.
To test the server code you need a running development environment, therefor you need to call make up prior to the tests.
Then just calling make yarn test will run the tests using yarn in the server container.
TBC3
The hapi server uses the swagger plugin to show the rest api documentation.
You can access it while the server is running using http://localhost:8000/docs.
There are several functions implemented which do much of the work.
To setup the users you need to be comfortable using the psql shell and working with the database as there is no Administration Interface, everything is done using pure sql.
The user table is your main starting point.
You can use the database function create_user to add a user with a target time.
Users change their target time for whatever reason. TTrack is able to handle this. You can always change the target time at a specific point in time using the user_add_new_target_time database function.
Since because of security concerns we needed to purge the git commit history, here are the contributors of the project.
It all started as a fun project and never majored of it. It is strictly a tool for tracking our times with our needs. (f.e. Austrian Holidays, no Administration, ...)
Content type
Image
Digest
Size
313.3 MB
Last updated
about 8 years ago
docker pull 25thfloor/ttrack-server