A backend application which will generate random apologies for a developer
Table of Contents
You are a developer and a customer is asking you something?
Here is the random apologies generator you need to make him waiting !
- Java 17
- Maven
- Docker
- Postgres
To run the project, you will need :
- Java 17
- Maven
- Docker
- Clone the repo
git clone https://github.com/qloots/dev-apologies-randomizer.git
- Open it in your favorite IDE
- Build the PostgreSQL Docker image
docker compose up -d
- Run the
DevApologiesRandomizerApplicationvia your IDE - Enjoy it with Postman in a first time
GET http://localhost:8080/api/apologies will return you all the available apologies.

GET http://localhost:8080/api/apologies/random will return you a random apology t give to your customer.

POST http://localhost:8080/api/apologies will add an apology into the database.

- Stop the running application from your IDE.
- Shut down the dockerized PostgreSQL:
docker compose down
- Delete all containers:
docker rm -f $(docker ps -a -q) - Delete all volumes:
docker volume rm $(docker volume ls -q)
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature) - Commit your Changes (
git commit -m 'Add some Amazing Feature') - Push to the Branch (
git push origin feat/AmazingFeature) - Open a Pull Request