JDK 1.8
at least - for running appMaven 3+
- for building packageDocker Service
(optional) - for dockerized start upPostgreSQL latest version > 9.4
(optional) - without dockerized start up
1. Clone the repository
git clone https://github.com/ElinaValieva/admin-tool-with-docker.git
2. In the location of docker-compose.yml
execute the following
docker-compose up
3. Application will start localhost:8090/home
and eureka server localhost:8761
1. Database initialization
-
Download database
postgreSQL
from postgresql -
Open
psql
command line and login as superuser (as a defaultpostgres
) -
Create database
admindb
and user with this scripts
postgres=# CREATE DATABASE admindb;
postgres=# CREATE USER admindb WITH PASSWORD 'admindb';
postgres=# GRANT ALL PRIVILEGES ON DATABASE admindb TO admindb;
2. Clone repository
git clone https://github.com/ElinaValieva/admin-tool-with-docker.git
3. Compile all projects with command
mvn clean install
4. Run
As first step runeureka
and then other services. Application will start localhost:8090/home
and eureka server localhost:8761
- user with
admin
privileges
login: admin
password: pass
- user with
user
privileges
login: user
password: pass