This is just a useless project to help me learn thing about spring boot, how to docker my app, and how to implement CI/CD with git hub. This project serve me as exemple as well t remember how to do things. Maybe it'll help you as well.
Here's why:
- This is a SpringBoot app wrote with JAVA
- This app works with a MySQL data base
- you can find a docker image of this app in Docker hub hod0r/dummy-api
I'm GAulombard
.
Using docker. You'll first need to instal docker desktop form docker website
docker network create spring-net
docker run -d --net spring-net -p 3307:3306 --name mysqldb -e MYSQL_ROOT_PASSWORD=rootroot -e MYSQL_DATABASE=dummy_db -v "./dummy_db":/var/lib/mysql mysql
docker run -d --net spring-net -p 9090:8080 --name dummy-api -e MYSQL_HOST=mysqldb -e MYSQL_PASSWORD=rootroot -e MYSQL_USER=root -e MYSQL_PORT=3306 hod0r/dummy-api
after that you can check the documentation at this adress
http://localhost:9090/swagger-ui/index.html
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 from (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request toward develop branch
Distributed under the MIT License. See LICENSE.txt
for more information.
GAulombard - @your_twitter - GAulombard
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!