This is a web app created for educational purposes. It is used in module 4 of Interview Kickstart's full stack curriculum.
Node.js (v14.15.1) https://nodejs.org/en/download/
- Clone this repo using git clone.
- cd ik-module4-webapp/kickposter
- npm install
- npm run start
One of the examples present in this project is contained within the "Drive Examiner" file, and shows off the oAuth2 integration pathway. In order to set this up, you'll need to create a Google Cloud project. Guides are available in the Google Developers documentation, but the steps to set it up for this project in particular are as follows.
- Signing into https://console.cloud.google.com/, create a new project with a preferred name.
- Once the project is created, open the left sidebar, and select "Enabled APIs and Services". Then, search for the Google Drive API, and enable it.
- In the top, you'll be presented with a prompt to "Create Credentials". Click this to begin creating the credentials for your project.
- Under "Credential Type", select "User Data".
- Add the desired name and contact email (these would be viewable by students during a demo).
- For scopes, you'll only need to enable the ".../auth/drive.metadata" scope for the Google Drive API.
- Fill in whatever desired client ID for the OAuth Client ID, select "Web Application" under Application Type, and add "http://localhost:3000" to the authorized JavaScript origins. After hitting create, you'll get an option to download your credentials. Download them, and make a note of the client ID.
- Back on the credentials page for your project, create an API key via the "+ Create Credentials" button. This will create a new API key.
- As a last step, select "OAuth Consent Screen" via the left sidebar, and add yourself via email as a "Test User" to the screen. This will allow you to use the app without needing to publish it fully.
- Finally, using the client id as "CLIENT_ID" and the API key as "API_KEY", fill in the credentials.json file to make use of the Drive Examiner.
The web sockets example uses a website at https://socketsbay.com/test-websockets. When you've enabled the web socket connection to begin on start-up in your example, you'll be able to run the example by first clicking "Connect" on this page, and then typing whatever message you specified to pass your filter (e.g. "IKPROJ Test!") into the chat on the site! Note that due to the nature of the site as an echo communication and being 2 way, the app will populate with two copies of any message.