TOM
TOM is a web platform for the Fabriquer un objet connecté MOOC. It will allow the MOOC students to manipulate Nelson objects using a RESTful API directly from the edX FUN instance.
Installation
- Install a LAMP server
- Fork this repo
- Install Django and Django Rest Framework using pip then start the server :
$ git clone git@github.com:bgaultier/tom.git
$ cd tom/
$ sudo apt-get install pip
$ sudo pip install django djangorestframework
$ python manage.py makemigrations nelsons
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver 0.0.0.0:8000
Endpoints
- First, you have to create a nelson object using the admin : http://mycomputer.local/admin/
- Log in using the credentials for the super user
- Create a Nelson object using the Add button
- Then go to http://mycomputer.local/nelsons/baptiste/ to enjoy the Browseable API offred by Django Rest Framework
- Here are the Rest verbs available : GET (Retrieve), PUT, PATCH (Update), DELETE (Destroy)