A simple calender App created on Django.
-
Create a new project in the Google Cloud Console and enable the Google Calendar API.
-
Create OAuth 2.0 credentials for your project. Under "Authorized redirect URIs", add
http://localhost:8000/rest/v1/calendar/redirect/
for local development. -
Download
client_secret
file from the Google console and place it in the root directory of the project. -
Run the following commands in your
CLI
to install the required dependencies
$ pip3 install -r requirements.txt
- Run the following commands in your
CLI
to run the development server
$ pip3 install -r requirements.txt
- Django server is hosted on port
8000
. - Client can use the App by accessing the URL
rest/rest/v1/calendar/init/
in the browser(recommended). - Client will get the events next 10 events from current date and time. by the URL
rest/v1/calendar/redirect/
.