Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.2 KB

MeowHub

Engineering Thesis

Database

For production environment, you need to have an oracle database. If you didn't create oracle database yet, run script database/install.sql. (run the application to instatiate mock users via SecurityConfig) For mock data, run script database/scripts/510_insert_mock_data.sql on your database - as it is not included in install.sql script.

Profiles

swagger - to run application with Swagger
dev - to run application with H2 database (for offline development)

Swagger

To run swagger use swagger profile.
Link to swagger documentation: http://localhost:8080/swagger-ui/index.html

Offline development && Testing

To develop application offline please use dev profile - it uses h2 database instead of oracle database that is used on production.
img.png
No other configurations are needed.

Environment variables

DB_URL - database url
DB_USERNAME - database username
DB_PASSWORD - database password
JWT_SECRET - secret key for JWT token
JWT_EXPIRATION_MS - expiration time for JWT token in milliseconds

With production environment, you need to set all of these variables.