This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2017-03-09 00:05:20 +01:00
|
|
|
# Getting Started
|
|
|
|
|
2017-03-09 00:07:54 +01:00
|
|
|
1. Install Docker.
|
2017-03-09 22:31:47 +01:00
|
|
|
2. Set up an environment variable `LAB_MONOLITH_DB_HOST` and assign the docker host's IP,
|
|
|
|
set `LAB_MONOLITH_DB_PORT` to some free port, e.g. 5432.
|
2017-03-09 00:05:20 +01:00
|
|
|
|
2017-03-09 00:07:54 +01:00
|
|
|
For docker machine type `docker-machine env` and the value of `$DOCKER_HOST`,
|
|
|
|
otherwise `localhost` is probably correct.
|
2017-03-09 00:05:20 +01:00
|
|
|
|
2017-03-09 00:07:54 +01:00
|
|
|
3. Set up an environment variable `LAB_MONOLITH_DB_PASSWORD` and assign any password.
|
2017-03-09 00:05:20 +01:00
|
|
|
|
2017-03-09 00:07:54 +01:00
|
|
|
4. `./start-db.sh`
|
2017-03-09 00:05:20 +01:00
|
|
|
|
2017-03-09 00:07:54 +01:00
|
|
|
Starts a PostgreSQL database using the password from `LAB_MONOLITH_DB_PASSWORD`.
|
2017-03-09 00:05:20 +01:00
|
|
|
|
2017-03-09 00:07:54 +01:00
|
|
|
5. `gradle bootRun`
|
|
|
|
6. Open http://localhost:8080
|