- Get
listUpcomingEvents
working - Merge branch to master
- Make a CalendarCard component that has name of calendar + 3 immediately upcoming events
- Add MaterialUI
- Create
creds.js
insrc
folder creds.js
:var creds = { CLIENT_ID : "<Your Client ID here>", API_KEY : "<Your API Key here>", cal_id : '<ID of one of your google calendars>' // cal_id = 'primary' if you want to see events for your default calendar }; export {creds};
- Can get
CLIENT_ID
andAPI_KEY
from google dev console- Create a new project, take note of its ID
- Go to https://console.cloud.google.com/apis/library?project=Your_project's_ID_here
- Search for Google Calendar API and enable it for your project
- Go to https://console.cloud.google.com/apis/credentials?project=Your_project's_ID_here
- Create credentials
- API key
- copy the key, put it in the
creds.js
file
- copy the key, put it in the
- OAuth client ID
- Application type: Web
- Authorised JavaScript origins: http://localhost:3000
- Authorised redirect URIs: http://localhost:3000
- Create
- copy the client_id, put it in the
creds.js
file
- API key
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify