https://github.com/pixel-tactics/pixel-tactics-user
Pixel Tactics User Microservice. Built in Springboot
https://github.com/pixel-tactics/pixel-tactics-user
backend jwt-authentication microservice rabbitmq spring-boot
Last synced: about 1 month ago
JSON representation
Pixel Tactics User Microservice. Built in Springboot
- Host: GitHub
- URL: https://github.com/pixel-tactics/pixel-tactics-user
- Owner: Pixel-Tactics
- License: mit
- Created: 2024-06-06T16:14:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T12:52:55.000Z (about 2 years ago)
- Last Synced: 2025-05-19T13:11:21.460Z (about 1 year ago)
- Topics: backend, jwt-authentication, microservice, rabbitmq, spring-boot
- Language: Java
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pixel Tactics - Users Microservice



This is the users microservice of Pixel Tactics. This service focuses on handling user data such as authentication, user statistics, etc.
## Installing
First, you need to setup the environment variables. You can create `.env` file in the root directory to do this step. Below are the required envs:
- `JDBC_DATABASE_URL`: URL for PostgreSQL database. Example: `jdbc:postgresql://localhost:5432/pixel_tactics`.
- `JDBC_DATABASE_USERNAME`: Username for the database. Example: `postgres`.
- `JDBC_DATABASE_PASSWORD`: Password for teh database.
- `JWT_SECRET_KEY`: Secret key for internal JWT encryption process.
- `JWT_EXPIRATION_TIME`: JWT Token expiration time in milliseconds.
- `MICROSERVICE_SECRET_KEY`: Secret key to protect the microservice interaction endpoints. Include this key in `X-SERVICE-SECRET` HTTP header for any service that needs to interact with this service via endpoints.
- `RABBITMQ_HOST`: Hostname for RabbitMQ server.
- `RABBITMQ_PORT`: Port for RabbitMQ server. It is usually `5672`.
- `RABBITMQ_USERNAME`: Username for RabbitMQ server.
- `RABBITMQ_PASSWORD`: Password for RabbitMQ server.
After setting up the environment variables, you need to install dependencies.
```
mvn install
```
After installing the required dependencies, ensure that the Match Microservice and RabbitMQ server is active. Then, to run this service, run:
```
mvn spring-boot:run
```
## Developers
- Meervix (Emyr298)