The application is a simple CRUD API app that is the backbone of the news feed app.
- Set up the MySQL instance on local machine. Version 8.0 is fine.
- Install JDK. (version 17 in my case)
- Set the next environment variables before the start (use
source
command or tools like https://direnv.net/):- NEWS_DB_URL
- NEWS_DB_SCHEMA
- NEWS_DB_USER
- NEWS_DB_PASSWORD
- Use
./mvnw spring-boot:run
from the root of the project.) - Flyway going to create the schema automatically.
- Use.
Please, use News_API.postman_collection.json
in the root of the project to import the POSTMAN collection.
This will help you to understand the API and will help to make HTTP calls faster.
- Make the app Docker friendly
- Security integration
- Add KDoc documentation. However, in my point of view good code should self-explanatory ;)
- Logging tool integration. (logging of some income parameters, etc)
- Mock data generation???