Skip to content

NiRO-bb/auth

Repository files navigation

Auth microservice

This project presents microservice for authentication and authorization.

Install

Preferenced requirements

  • Java 21
  • Maven 3.9.9
  • Spring Boot 3.5.3
  • Docker
  • PostgreSQL

Steps to install project

  1. Clone repository
git clone https://github.com/NiRO-bb/auth.git
  1. Create .env files You must write .env_dev and .env_prod files with following values:
  • TOKEN_SECRET_KEY
  • TOKEN_EXPIRATIONS
  • SPRING_DATASOURCE_URL
  • SPRING_DATASOURCE_USERNAME
  • SPRING_DATASOURCE_PASSWORD
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET

.env_dev - for local development

.env_prod - for container (docker) development

  1. Build with Maven
mvn clean package

Usage

  1. Launch Docker
docker compose up

or

  1. Launch JAR
java -jar target/AuthService-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev

Contributing

Contributors

License

No license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published