Skip to content

kaz-yamada/Calendar-booking-app

Repository files navigation

Calendar booking app

This is a small Express JS application using Google Calendar API

Prerequisites

To run this locally

  1. Install Node.js
  2. Run the npm install command from the project root to install dependencies
  3. Get google api credentials (see below)

Get Google API credentials

  1. Go to https://console.developers.google.com/
  2. Create a project and enable the Google Calendar API
  3. Setup an OAuth consent screen
  4. Go to create credentials
  5. Create credentials and select "OAuth client ID" from the dropdown
  6. Select "Other" and then hit create

Now you have 2 options...

Option 1: use .env files

Add your project id, client id and client secret to the .env file under "PROJECT_ID", "CLIENT_ID" and "CLIENT_SECRET" respectively. Just follow the format of the .env.example file

Option 2: use json file

In your project in the google developer console:

  1. Go to "Credentials"
  2. "OAuth 2.0 Client IDs"
  3. Select your newly created credentials
  4. "Download json"
  5. Place the json at the root of this project and rename it to "credentials.json"

Run

Once you've set up the google auth credentials you can run npm start to start up the server or npm run dev to start and watch for changes in files

Credits

Kazuki Yamada

About

An express app using google calendar

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published