Rest APIS for Json Web Token Authentication built with Spring Boot & MYSQL, implemented for different role based users.
-
Run maven install task via IDE or run command in root
mvnw install
, and you will get executableauth-spring-apis.jar
file inside./target
directory. -
Run App with MySQL Database, using docker compose
docker-compose -f "docker-compose.yml" up
-
Run App with External MySQL Database, add the database configuration in
./src/main/resources/application.properties
file. run the command in root dir to build imagedocker build . -t auth-spring-api-image-name
create container and run
docker run -p 8080:8080 --name auth-spring-container-name auth-spring-api-image-name
-
Done, check your
localhost
at Port8080
.