Skip to content

Run server locally

yuriikoval1997 edited this page Jan 7, 2020 · 1 revision
  1. You should create environmental variables that are defined in application-dev.properties.
  2. You should create database greencity. All these variables you can set in Intellij Idea. For instance,
spring.datasource.url=${DATASOURCE_URL}
spring.datasource.username=${DATASOURCE_USER}
spring.datasource.password=${DATASOURCE_PASSWORD}
spring.mail.username=${EMAIL_ADDRESS}
spring.mail.password=${EMAIL_PASSWORD}
  1. If you did everything correctly, you should be able access swagger by this URL: http://localhost:8080/swagger-ui.html#/