Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
setting up FenixFramework (closes #115) (#135)
Browse files Browse the repository at this point in the history
* setting up FenixFramework

* update .gitignore

* rename local.dev.yml

* re-add example files

* adding password example
  • Loading branch information
ruimaranhao authored and ritosilva committed Apr 1, 2018
1 parent e439279 commit ae0e671
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ infer-out
*.iml
.idea
.DS_Store
fenix-framework.properties
fenix-framework.properties
local.dev.yml
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,28 @@ To see the coverage reports, go to <module name>/target/site/jacoco/index.html.

- **Group 1:**
- **Group 2:**

### Infrastructure

This project includes the persistent layer, as offered by the FénixFramework.
This part of the project requires to create databases in mysql as defined in `resources/fenix-framework.properties` of each module.

See the lab about the FénixFramework for further details.

#### Docker (Alternative to installing Mysql in your machine)

To use a containerized version of mysql, follow these stesp:

```
docker-compose -f local.dev.yml up -d
docker exec -it mysql sh
```

Once logged into the container, enter the mysql interactive console

```
mysql --password
```

And create the 5 databases for the project as specified in
the `resources/fenix-framework.properties`.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copy this file to fenix-framework.properties
# Copy this file to fenix-framework.properties
# and replace password by your mysql root password
dbAlias=//localhost:3306/adventures
dbUsername=root
dbPassword=password
updateRepositoryStructureIfNeeded=true
canCreateDomainMetaObjects=false
canCreateDomainMetaObjects=false
4 changes: 2 additions & 2 deletions bank/src/main/resources/fenix-framework.properties.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copy this file to fenix-framework.properties
# Copy this file to fenix-framework.properties
# and replace password by your mysql root password
dbAlias=//localhost:3306/adventures
dbUsername=root
dbPassword=password
updateRepositoryStructureIfNeeded=true
canCreateDomainMetaObjects=false
canCreateDomainMetaObjects=false
4 changes: 2 additions & 2 deletions broker/src/main/resources/fenix-framework.properties.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copy this file to fenix-framework.properties
# Copy this file to fenix-framework.properties
# and replace password by your mysql root password
dbAlias=//localhost:3306/adventures
dbUsername=root
dbPassword=password
updateRepositoryStructureIfNeeded=true
canCreateDomainMetaObjects=false
canCreateDomainMetaObjects=false
7 changes: 7 additions & 0 deletions car/src/main/resources/fenix-framework.properties.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copy this file to fenix-framework.properties
# and replace password by your mysql root password
dbAlias=//localhost:3306/adventures
dbUsername=root
dbPassword=password
updateRepositoryStructureIfNeeded=true
canCreateDomainMetaObjects=false
4 changes: 2 additions & 2 deletions hotel/src/main/resources/fenix-framework.properties.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copy this file to fenix-framework.properties
# Copy this file to fenix-framework.properties
# and replace password by your mysql root password
dbAlias=//localhost:3306/adventures
dbUsername=root
dbPassword=password
updateRepositoryStructureIfNeeded=true
canCreateDomainMetaObjects=false
canCreateDomainMetaObjects=false
14 changes: 14 additions & 0 deletions local.dev.yml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '2'
services:
mysql:
image: mysql
container_name: mysql
ports:
- "3306:3306"
volumes:
- .:/code
environment:
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=password
- MYSQL_ALLOW_EMPTY_PASSWORD='yes'
- MYSQL_DATABASE=adventures
7 changes: 7 additions & 0 deletions tax/src/main/resources/fenix-framework.properties.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copy this file to fenix-framework.properties
# and replace password by your mysql root password
dbAlias=//localhost:3306/adventures
dbUsername=root
dbPassword=password
updateRepositoryStructureIfNeeded=true
canCreateDomainMetaObjects=false

0 comments on commit ae0e671

Please sign in to comment.