Skip to content

ritscc/gakusai-hack-2021-b

Repository files navigation

Gift Tree

build test lint lint Version 1.0 MIT License

2021 年学祭ハッカソンの成果物

Develop

Requirements

  • Java OpenJDK 11
  • Spring Boot 2.5
  • MySQL 8.0

Usage

If you want to run on Windows, you can use gradlew.bat instead of of gradlew.

How to bulid

$ ./gradlew bootJar

When build successful, you can find .jar file in app/build/libs

How to run

First, you need to launch mysql with docker-compose.

$ docker-compose up -d

Then you can launch application. Default port is 8080. If you want to change port, run with -Dserver.port=XXXX.

# 1. run .jar file
$ java -jar <application name>-<version>.jar  # -Dspring.profiles.active=<environment>

# 2. run on dev environment
$ ./gradlew bootRun

How to test

# 1. all tests
$ ./gradlew test

# 2. only unit tests
$ ./gradlew unitTest

# 3. only integration tests
$ ./gradlew integrationTest

API docs

This project support Swagger UI.

  1. Run application
  2. Access to Swagger UI

About

Gift Tree『ギフトを友達におすそわけできるアプリ』

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published