/django-rest-api

Simple RestFul API using Django Rest Framework

Primary LanguagePython

Django-Restful-API

Simple RestFul API using djangorest framework

Cloning

  • Open terminal and type git clone https://github.com/makaubenson/django-rest-api.git

Creating virtual environment

  • To create a virtual environment, cd to your preferred location
  • Then type virtualenv <envname>

Installing dependencies

  • To install dependencies from this project:
  • cd to root directory where manage.py is located
  • activate environment then type pip install -r requirements.txt for python 2.x
  • activate environment then type pip3 install -r requirements.txt for python 3.x

Running the project

  • cd to root directory where manage.py is located, then
  • type python manage.py runserver
  • Open browser then type : http://localhost:8000/employees