Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T12:52:55.000Z (5 months ago)
- Last Synced: 2024-06-30T09:18:34.566Z (5 months ago)
- Topics: backend, jwt-authentication, microservice, rabbitmq, spring-boot
- Language: Java
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pixel Tactics - Users Microservice
![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)
![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge&logo=spring&logoColor=white)
![RabbitMQ](https://img.shields.io/badge/Rabbitmq-FF6600?style=for-the-badge&logo=rabbitmq&logoColor=white)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)