33> [ 🐬 MySQL/MariaDB implementation] ( https://github.com/Throyer/springboot-api-crud/tree/mariadb#readme )
44
55<p align =" center " >
6- <a href =" https://github.com/Throyer " target =" blank " ><img src =" ./assets/tecnologias.png " width =" 560 " alt =" Tecnologias " /></a >
6+ <a href =" https://github.com/Throyer " target =" blank " ><img src =" ./assets/images/ tecnologias.png " width =" 560 " alt =" Tecnologias " /></a >
77</p >
88
99<h1 align =" center " >Spring Boot API RESTful</h1 >
1717[ ** Live demo on heroku** ] ( https://throyer-crud-api.herokuapp.com )
1818
1919<p align =" center " >
20- <a href =" https://throyer-crud-api.herokuapp.com " target =" blank " ><img src =" ./assets/demo.gif " alt =" Demonstration " /></a >
20+ <a href =" https://throyer-crud-api.herokuapp.com " target =" blank " ><img src =" ./assets/images/ demo.gif " alt =" Demonstration " /></a >
2121</p >
2222
2323## Table of Contents
3535# Features
3636
3737<p align =" center " >
38- <a href =" https://throyer-crud-api.herokuapp.com " target =" blank " ><img src =" ./assets/features.png " alt =" Tecnologias " /></a >
38+ <a href =" https://throyer-crud-api.herokuapp.com " target =" blank " ><img src =" ./assets/images/ features.png " alt =" Tecnologias " /></a >
3939</p >
4040
4141
@@ -51,10 +51,10 @@ This project was started with [Spring Initializr](https://start.spring.io/#!type
5151## Entities
5252
5353<p >
54- <img src =" ./database_diagram/spring_boot_crud_database_diagram .png " alt =" database diagram " />
54+ <img src =" ./assets/database/diagram .png " alt =" database diagram " />
5555</p >
5656
57- > [ 🚨 draw.io file here] ( ./der/spring_boot_crud_database_diagram .drawio )
57+ > [ 🚨 draw.io file here] ( ./assets/database/diagram .drawio )
5858
5959## Installation
6060
@@ -103,6 +103,10 @@ Once the application is up, it is available at: [localhost:8080/documentation](l
103103## Database Migrations
104104Creating database migration files
105105
106+ > 🚨 make sure you have maven in your environment
107+ and that you are in the correct directory __ ./api__
108+
109+
106110- Java based migrations
107111 ``` bash
108112 mvn migration:generate -Dname=my-migration-name
@@ -116,25 +120,23 @@ Creating database migration files
116120---
117121
118122## Docker examples
119- docker compose for development
120- ``` bash
121- cd docker
122- docker-compose -p common-api-development -f docker-compose.dev.yml up -d
123- ```
124123
125- Building image for production
126- ``` bash
127- cd docker
128- DOCKER_BUILDKIT=1 docker build -f Dockerfile.prod -t common-api:4.1.2 ../
129- ```
124+ > 🚨 create ` environment ` file
125+ >
126+ > ``` bash
127+ > cp docker/.env.example docker/.env
128+ > ` ` `
130129
131- docker compose for production
132- ``` bash
133- cd docker
134- cp .env.example .env
130+ - docker compose development
131+ ` ` ` bash
132+ docker-compose -p example-api-development -f ./docker/docker-compose.dev.yml --env-file ./docker/.env up -d --force-recreate
133+ ```
134+
135+ - docker compose production
136+ ` ` ` bash
137+ docker-compose -p example-api -f ./docker/docker-compose.prod.yml --env-file ./docker/.env up -d --build
138+ ` ` `
135139
136- docker-compose -p common-api -f docker-compose.prod.yml up -d
137- ```
138140
139141# # Environment variables
140142
0 commit comments