This is a small Express JS application using Google Calendar API
To run this locally
- Install Node.js
- Run the
npm install
command from the project root to install dependencies - Get google api credentials (see below)
- Go to https://console.developers.google.com/
- Create a project and enable the Google Calendar API
- Setup an OAuth consent screen
- Go to create credentials
- Create credentials and select "OAuth client ID" from the dropdown
- Select "Other" and then hit create
Now you have 2 options...
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
In your project in the google developer console:
- Go to "Credentials"
- "OAuth 2.0 Client IDs"
- Select your newly created credentials
- "Download json"
- Place the json at the root of this project and rename it to "credentials.json"
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
Kazuki Yamada