Skip to content

hfeixas/DjangoApiCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Api Calendar

Django Api Calendar is a Django Iteration of FullCalendar, coupled with a Rest API written with the Django Rest Framework. The calendar uses GET Requests to get events, and POST to create new events.

Installation

Strongly recommend using a python3 virtual environment to run this:

python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Usage

Web UI

alt text

API

To Get Events make a GET Request to http://127.0.0.1/caldendar/api

    {
        "title": "Event Number 1",
        "start": "2019-06-27T18:00:00Z",
        "end": "2019-06-27T19:00:00Z",
        "allDay": false
    },
    {
        "title": "Event Number 2",
        "start": "2019-06-27T19:00:00Z",
        "end": "2019-06-27T20:00:00Z",
        "allDay": false
    },

To Create Event Make a POST request to http://127.0.0.1/caldendar/api

    {
        "title": "Test Event",
        "start": "2019-06-27T18:00:00Z",
        "end": "2019-06-27T19:00:00Z",
        "allDay": true
    },

Contributing

Pull requests are welcome. Free to use, change, and distribute. Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published