Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
/ taskbook Public archive

Simple application for tasks management, developed at college

Notifications You must be signed in to change notification settings

malczuuu/taskbook

Repository files navigation

Taskbook

Backend for Taskbook application. Developed by Damian Malczewski as a project at Cracow University of Technology in 2019.

Afterwards it served the purpose of testing Angular updates.

Table of Contents

Building Docker image

Building Docker automatically builds production-ready jarfile in a multi-stage build.

$ docker build -t taskbook-backend:latest .

Configuration

Configuration is possible via JVM properties.

property description default
-Dspring.datasource.url database connection string jdbc:mariadb://127.0.0.1:3306/taskbook
-Dspring.datasource.username database username taskbook
-Dspring.datasource.password database password taskbook
-Dtaskbook.jwt.secret JWT secret 0000000000
-Dtaskbook.jwt.lifetime JWT lifetime (in seconds) 864000

Configuration of Docker container

Docker image can be configured using environment variables which represents JVM properties listed above.

environment description default value
MARIADB_URI database connection string jdbc:mariadb://mariadb:3306/taskbook
MARIADB_USERNAME database username taskbook
MARIADB_PASSWORD database password taskbook
JWT_SECRET JWT secret 0000000000
JWT_LIFETIME JWT lifetime (in seconds) 864000

Note that within Docker container service will be launched with production profile, which means that database schema won't be automatically created (spring.jpa.hibernate.ddl-auto=none). It's required to create database schema manually.

Running on local machine

Running locally requires MariaDB database. See docker-compose.yml.

$ docker-compose up -d

To run the application use bootRun Gradle task.

$ ./gradlew bootRun

The application will be available on http://localhost:26160.

Run service using Gradle with ./gradlew bootRun task.

Note, that as a Docker service, the application is available on :80.

Alternatively you can build service with ./gradlew build task and run JARfile created in build/libs/. Running also works fine from most IDEs.

Project repositories

About

Simple application for tasks management, developed at college

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages