Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
anjana-somathilake committed Mar 23, 2020
1 parent fe538f3 commit 1f371bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ and add the private key from Firebase Admin SDK.
- run `java -jar covid19-1.0.0-SNAPSHOT.jar`. Check if the jar version matches.
- NOTE: access logs will get stored in the tomcat folder (tomcat/access/).
These logs can be disabled from the application.yml

### with Docker
- build project using `mvn clean install`
- unzip the `target/covid19-1.0.0-SNAPSHOT.zip` to `target/covid19-1.0.0-SNAPSHOT`
- modify the db url in the application.yml (replace localhose with container name) as below (FIXME: automate with spring profiles)
- `url: jdbc:mysql://db:3306/covid19_db?useUnicode=yes&characterEncoding=UTF-8`
- run ` docker-compose up -d` , make sure that ports 8000 and 3306 are not used in the local machine
- connect to dockerized mysql localhost:3306/covid19_db and execute `covid19.sql` on server (execute `covid19_test.sql` to add test data)

## APIs
----
Expand Down

0 comments on commit 1f371bd

Please sign in to comment.