This is an application with aim to learning about new features of Spring security from Spring version 6. The application is available at: https://alura-flix-api-production.up.railway.app
This is an application with aim to learning about new features of Spring security from Spring version 6. It is possible to access swagger documentation through url: https://alura-flix-api-production.up.railway.app
The username for test is: guest@aluraflix.com and the password is: 123456, please notice this user has ROLE_USER.
- Java 17
- Spring boot 3
- Spring 6
- MongoDB Atlas
- Lombok
- Spring Security
- JWT Token library
- Docker
- Junit, Mockito
- Jacoco Report
In order to generate swagger openApi without run the application, you can execute
mvn verify
This will generate the swaager on directory /src/main/resources/swagger
There's two environments variables tha should be setup:
- JWT_SECRET=${JWT_SECRET}
- DATABASE_PRO=${DATABASE_PRO}
After that it is possible to run just executing docker-compose.yml this will download the latest version
docker-compose up
mvn spring-boot:run
In the authentication-controller use the credentials
username: guest@aluraflix.com / password: 123456 to log in.
After that copy the Token JWT
And paste it in the Authorize button
That's it, you are already logged and can try out all endpoints 😉
Fell free to fork and contribute 😉