Build Instructions - Server Side
Step One: Clone the GitHub Repository.
- Navigate to the GitHub repository here.
- In the very top-right corner of the screen, select “Fork.”
- Select the account or organization you would like to fork the repository to.
- Once selected, GitHub will redirect you to the newly-created
albuquirky-servicerepository in your organization or account. - Select the green “Code” button, then copy the link to clone the repository.
Method One: Clone the Repository Manually
- In a Git Bash terminal, navigate to the directory you wish to clone the repository into.
- Once you are in the desired directory, enter the following command, replacing the placeholder with the link:
git clone [LINK]
Method Two: Clone from IntelliJ IDEA
- Open IntelliJ IDEA.
- Instead of selecting a recent project from the left, select instead the “Get from Version Control” option.
- Make sure that the “Repository URL” option on the left is selected.
- Enter the link copied from the “Code” button earlier into the “URL” field.
- Click the folder icon in the “Directory” field and navigate to the directory you would like to save the repository to.
- Select “Clone.”
Step Two: Import the App into IntelliJ IDEA
This step is unnecessary if you opted to clone the repository using IntelliJ instead of doing so manually.
- Once the repository has been cloned into your desired directory, open IntelliJ IDEA.
- Instead of selecting a recent project from the left, select the “Open or Import” option.
- Navigate to the directory you would like to save the repository to.
- Select “OK.”
Step Three: Executing the Build
- Open the app in IntelliJ, if it isn’t already open.
- An
albuquirky.propertiesfile must be included in order to correctly direct the application to the server. Please note that this file SHOULD NOT be stored in the same directory as the repository. This file must include the following attributes:- The
client_idmust be set to a client ID in the Google Cloud Console. One must be set up on your Cloud Console project’s OAuth 2.0 web client IDs section under Credentials for each device accessing the database. More information can be found here. - The
base_urlmust be set to the base URL from which your server will be operating. This will take the following form:http://[ADDRESS]:[PORT]/albuquirky/api/- The
[ADDRESS]will differ depending on whether you are operating on a physical device or an emulator. You can find the physical device URL through a command terminal, but an emulator will usually use10.0.2.2. - The
[PORT]represents the port through which traffic comes in and out of the server. This repository is using port8181, but you can change this to any port you like by editing theserver:portvalue in theapplication.ymlfile.
- The
- The
- Install and launch the app on your emulator or device.