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.jarfile inside./targetdirectory. -
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.propertiesfile. run the command in root dir to build imagedocker build . -t auth-spring-api-image-namecreate container and run
docker run -p 8080:8080 --name auth-spring-container-name auth-spring-api-image-name -
Done, check your
localhostat Port8080.