Skip to content

Commit

Permalink
Merge pull request #90 from thde/install-instructions
Browse files Browse the repository at this point in the history
Install instructions
  • Loading branch information
lroellin committed May 23, 2017
2 parents 1cff906 + 92987f5 commit 956f2a4
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
53 changes: 51 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,51 @@
# tylr
tylr ist ein System, welches Gruppen die Möglichkeit bietet, gemeinsame Ausgaben untereinander aufzuteilen.
# TYLR
TYLR is a REST API to help you to split up expenses in groups.

## Run from binaries

Prerequisites:

- Java / OpenJDK 8
- PostgreSQL 9

1. Install the prerequisites.
2. Download the newest release from Github.
3. Run the following commands to create a user and database:

````
CREATE USER tylr IDENTIFIED BY 'tylr';
CREATE DATABASE tylr WITH OWNER tylr ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8'
GRANT ALL PRIVILEGES ON DATABASE tylr to tylr;
````

````
psql -f sql/create_tables.sql tylr tylr
````

4. Create the`applications.properties` file and add the database credentials.

````
# Datasource settings
spring.datasource.url = jdbc:postgresql://localhost:5432/tylr
spring.datasource.username = tylr
spring.datasource.password = tylr
#server.port = 4567 #default
#server.ip = 127.0.0.1 #default
````

5. Run `scripts/tylr-api` to start the TYLR.
6. Access it through http://localhost:PORT

If you want to access the API from outside localhost or / and SSL, use a reverse proxy in front of the application like an NGINX.

## Run from source

Prerequisites:

- Java / OpenJDK 8
- PostgreSQL 9

1. Install the prerequisites.
2. Clone the master branch or a version tag from Github.
3. Do steps 4 and 5 from above.
4. Run `./gradlew run` to run TYLR.
4 changes: 3 additions & 1 deletion application.properties-example
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Datasource settings
spring.datasource.url = jdbc:postgresql://localhost:5432/tylr
spring.datasource.username = tylr
spring.datasource.password = tylr
spring.datasource.password = tylr
#server.port = 4567 #default
#server.ip = 127.0.0.1 #default

0 comments on commit 956f2a4

Please sign in to comment.