readme.md 1.32 KB
Newer Older
Olaf Rosendahl's avatar
Olaf Rosendahl committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Picturerama

Image database project in Systemutvikling 1 at NTNU

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

### Prerequisites
- Java 12 SDK
- IntelliJ IDEA or another code editor

### Installing
```
git clone git@gitlab.stud.idi.ntnu.no:gruppe-12/picturerama.git
```

Olaf Rosendahl's avatar
Olaf Rosendahl committed
18
In order to be able to connect to our database, be able to upload local images and use the map, you'll need a ```config.properties``` file in the project root. It should look like this:
Olaf Rosendahl's avatar
Olaf Rosendahl committed
19
```
20
21
username=your_username
password=your_password
22
database_url=jdbc:mysql://your_database_url
23
24
25
cloudinary_cloud_name=your_cloud_name
cloudinary_api_key=your_api_key
cloudinary_api_secret=your_api_secret
Olaf Rosendahl's avatar
Olaf Rosendahl committed
26
google_maps_api_key=your_google_maps_api_key
Olaf Rosendahl's avatar
Olaf Rosendahl committed
27
```
28

Olaf Rosendahl's avatar
Olaf Rosendahl committed
29
Contact one of the developers to get our config.properties file.
Olaf Rosendahl's avatar
Olaf Rosendahl committed
30

31
32
If you want to setup your own database for the application. Run the SetupDatabase file in the Main folder in the project, and use your own info in the config.properties file.

33
You should now have the files you need. In order to be able to run, you have to compile JavaFX
Olaf Rosendahl's avatar
Olaf Rosendahl committed
34

35
36
**Steps to compile JavaFX in IntelliJ IDEA:**
1. MAVEN
37
2. Picturerama
38
39
40
3. Plugins
4. Double click on javafx:compile
5. Build project (hammer)
Olaf Rosendahl's avatar
Olaf Rosendahl committed
41
6. Right click javafx:run and click "Run 'Picturerama'"