Skip to content

amirfeqhi/DjangoProfile

Repository files navigation

RESTful API

A Django rest api for managing user profiles

Build Status Scrutinizer Code Quality Coverage Status Code Intelligence Status

Django restapi

How to use

  • Attention: It's a good practice to run your code on a virtual server like Vagrant

Requirements

  1. Vagrant (for more information -> Vagrant website)
  2. VirtualBox
  3. Django Version 1.11.1
  4. Django rest framework library Version 3.6.2

Usage

  • Setup And Config Vagrant

    1. $ vagrant init

    2. $ vagrant up

    3. $ vagrant ssh

  • Create a virtual-environment on Vagrant

    1. $ virtualenv "venv_name" --python=python3
    2. $ source "venv_name/bin/activate"

    Note: Enter $ deactivate for exit from venv

  • Run server on vagrant for testing

    1. $ python manage.py runserver 0.0.0.0:8080