This repository is part of a project called ChessHub. The ChessHub project is build with a Microservice-Architecture.
The chesshub-core repository defines the service which is responsible for User-, Team-, Club- and Game-Management.
- Docker
- Java: >= 17
- Maven
- Clone the repository:
git clone https://github.com/benjaminkost/chesshub-core.git- Define .env
- copy
.env_sampleand rename it to.env - define the values according to your system
- Install dependencies and package project
mvn clean install- Start project
- navigate to webapp and run
docker compose up -d| Endpoint | Method | Description |
|---|---|---|
| /api/auth/register, /api/auth/signup | POST | Register a User |
| /api/auth/login, /api/auth/signin | GET | Login a User |
- Open a browser and tip in:
http://localhost:8081 - Tip in the username and password for MySQL Server
- Open the
chessmanagementdatabase - Open the
Usertable - Insert a user with the command:
curl --header "Content-Type: application/json" \
--request POST \
--data {"username":"testUser","firstName": "Test","lastName": "User","email": "mail@test-user.de","password": "password","phone": "+491234567890"} \
http://localhost:8080/api/auth/register- Framework: Spring Boot Project
- Endpoints: RESTFull APIs
- Database: MySQL
- DBMS: phpmyadmin
- DB migration: flyway
- Build and deploy: Docker compose
Create an Issue in the Issues section in this repository.
This project is licensed under the MIT License. See License for details.