@@ -67,7 +67,10 @@ This project was started with [Spring Initializr](https://start.spring.io/#!type
6767 ``` shell
6868 mvn -f api/pom.xml install -DskipTests
6969 ```
70- - run the application
70+ - run the application
71+ - home http://localhost:8080
72+ - api http://localhost:8080/api
73+ - swagger http://localhost:8080/docs
7174 ``` shell
7275 mvn -f api/pom.xml spring-boot:run
7376 ```
@@ -97,10 +100,10 @@ use the parameter `-Dtest=<class>#<method>`
97100
98101
99102## Swagger
100- Once the application is up, it is available at: [ localhost:8080/documentation] ( localhost:8080/documentation )
103+ Once the application is up, it is available at: [ localhost:8080/docs] ( http://localhost:8080/docs )
104+ > 🚨 if you set ` SWAGGER_USERNAME ` and ` SWAGGER_PASSWORD ` on ` .env ` file this route require authentication
101105
102-
103- [ example on heroku] ( https://throyer-crud-api.herokuapp.com/documentation )
106+ [ example on heroku] ( https://throyer-crud-api.herokuapp.com/docs )
104107
105108---
106109
@@ -164,9 +167,11 @@ Creating database migration files
164167| ** Description** | ** Parameter** | ** Default values** |
165168| ------------------------------------------| ------------------------------------| ---------------------------|
166169| server port | ` SERVER_PORT ` | 8080 |
167- | database url | ` DB_URL ` | localhost:5432/common_app |
168- | username (database) | ` DB_USERNAME ` | root |
169- | user password (database) | ` DB_PASSWORD ` | root |
170+ | database host | ` DB_HOST ` | localhost |
171+ | database port | ` DB_PORT ` | 5432 |
172+ | database name | ` DB_NAME ` | example |
173+ | database username | ` DB_USERNAME ` | root |
174+ | database user password | ` DB_PASSWORD ` | root |
170175| displays the generated sql in the logger | ` DB_SHOW_SQL ` | false |
171176| set maximum database connections | ` DB_MAX_CONNECTIONS ` | 5 |
172177| secret value in token generation | ` TOKEN_SECRET ` | secret |
@@ -177,7 +182,8 @@ Creating database migration files
177182| SMTP username | ` SMTP_USERNAME ` | user |
178183| SMTP server password | ` SMTP_PASSWORD ` | secret |
179184| time for recovery email to expire | ` MINUTES_TO_EXPIRE_RECOVERY_CODE ` | 20 |
180- | max requests per minute | ` MAX_REQUESTS_PER_MINUTE ` | 10 |
185+ | max requests per minute | ` MAX_REQUESTS_PER_MINUTE ` | 50 |
186+ | swagger url | ` SWAGGER_URL ` | /docs |
181187| swagger username | ` SWAGGER_USERNAME ` | ` null ` |
182188| swagger password | ` SWAGGER_PASSWORD ` | ` null ` |
183189
0 commit comments