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 typepip install -r requirements.txt
forpython 2.x
activate environment
then typepip3 install -r requirements.txt
forpython 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