From 25013dad2662f7012aa4517aaf8bdff687b294d8 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Wed, 29 Mar 2023 11:06:06 +0200 Subject: [PATCH] chore: added syntax highlighting --- REST/PhotoFrame/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/REST/PhotoFrame/README.md b/REST/PhotoFrame/README.md index 3167e44..126f106 100644 --- a/REST/PhotoFrame/README.md +++ b/REST/PhotoFrame/README.md @@ -19,7 +19,7 @@ Before you can run this sample, you must set up a Google Developers project and 1. Set up a Google Developers Project and enable the **Google Photos Library API**. 1. In your project, set up new OAuth credentials for a web server application. Set the authorized JavaScript origin to `http://127.0.0.1` and the authorized redirect URL to `http://127.0.0.1:8080/auth/google/callback` if you are running the app locally. 1. The console will display your authentication credentials. Add the `Client ID` and `Client secret` to the file `config.js`, replacing the placeholder values: -``` +```node // The OAuth client ID from the Google Developers console. config.oAuthClientID = 'ADD YOUR CLIENT ID'; @@ -40,7 +40,7 @@ Make sure that you have configured the `Client ID` and the `Client secret` in th Also check that the URLs configured for these credentials match how you access the server. By default this is configured for 127.0.0.1 (localhost) on port 8080. You can also start the app with additional debug logging by setting the `DEBUG` environment variable to `true`. For example: -``` +```properties DEBUG=TRUE node app.js ``` @@ -69,4 +69,4 @@ When an album is selected, the handler `app.post('/loadFromAlbum', ...)` receive ## Displaying photos Photos are displayed on the photo frame page of this app. The template file is located at `views/pages/frame.ejs`. When this page is loaded, a request is made to `app.get('/getQueue', ...)` to the server `app.js`. -This handler returns a list of the `mediaItems` the user has loaded into the frame through search or from an album. They are rendered for display by the browser through the file `static/js/frame.js`. Here the caption is constructed from the description and other media metadata. A thumbnail, scaled based on the original height and width, is used to render a preview initially while the image at full resolution is being loaded. \ No newline at end of file +This handler returns a list of the `mediaItems` the user has loaded into the frame through search or from an album. They are rendered for display by the browser through the file `static/js/frame.js`. Here the caption is constructed from the description and other media metadata. A thumbnail, scaled based on the original height and width, is used to render a preview initially while the image at full resolution is being loaded.