- Java JDK v17
- Make sure to have
Mavenset up.
# maven: download, extract and move to the executable folder
wget https://dlcdn.apache.org/maven/maven-3/3.9.3/binaries/apache-maven-3.9.3-bin.tar.gz
tar -xvf apache-maven-3.9.3-bin.tar.gz
sudo mv apache-maven-3.6.3 /opt/
# publish maven path
export PATH="$PATH:/opt/apache-maven-3.9.3/bin"
# set maven path to the default usable programs
nano ~/.bashrc
# add the line
PATH="$PATH:/opt/apache-maven-3.9.3/bin"
# reload the terminal or apply the changes
source ~/.bashrc-
Setup src/main/resources/.env credentials as described in src/main/resources/.env.example.
-
Run the app via CLI:
mvn spring-boot:run-
Setup .env credentials as described in .env.example.
-
Run Docker Compose:
docker-compose up -d-
As the JWT_SECRET it's recommended to use SHA256 hashed string.
-
Use "ADMIN_***" credentials from src/main/resources/.env.example to act as an admin.
-
Try the Postman Collection using http://localhost:8080 as a dev host URI.
-
Or check the API docs with SwaggerUI on /swagger-ui/index.html
Project Related
- Code on GitHub
- Postman Collection
Used Resources
- Spring Initializr configuration
- Spring Dotenv » 2.5.4
- ModelMapper » 3.1.1
- Spring Boot Starter Validation » 3.1.2
- JJWT :: Impl » 0.11.5
- JJWT :: API » 0.11.5
- JJWT :: Extensions :: Jackson » 0.11.5
- SpringDoc OpenAPI Starter WebMVC UI » 2.2.0
Useful Links
- Another popular model-mapping library MapStruct
- Open source online tool for SHA256 hashing
Course Related
- Udemy Course
- Course's source code
- Download the course free from www.downloadly.ir
- Watch online on OK
