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.
- This app requires some editing of the
application.ymlfile in order to function - particularly, theclient_idfile.- The
spring:security:oauth2:resourceserver:jwt:issuer-urimust be set tohttps://accounts.google.com. - The
spring:security:oauth2:resourceserver:jwt: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 client IDs section under Credentials for each device accessing the application. More information can be found here.
- The
- Navigate to the
AlbuquirkyApplicationclass along the pathsrc\main\java\edu\cnm\deepdive\albuquirky. - Launch the
mainmethod.