-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from thde/install-instructions
Install instructions
- Loading branch information
Showing
2 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |