Skip to content

Blog API with Django Rest Framework. (Work In Progress)

License

Notifications You must be signed in to change notification settings

vu3tpz/Blog-API

Repository files navigation

Blog-API

Simple Blog API that have similar functionality like Instagram with Best Partice in DRF and a feasible solution

Build with ⚒️

-> Django Framework | Django Rest Framework

-> SQLite

-> Pre-Commit

How to run Locally 🖥️

  1. Before the following steps make sure you have git installed on your system.

  2. Download and Install Python required version.

  3. Read about virtualenv in Python. Create a virtual environment for your project.

pip install virtualenv
virtualenv virtualenv_name
  1. Activate the environment in cmd.

For Windows

virtualenv_name\scripts\activate

For Ubuntu

source virtualenv_name/bin/activate

Clone the GitHub project in your local directory with command git clone https://github.com/vu3tpz/Blog-API or you can just download the code and unzip it.

git clone https://github.com/vu3tpz/Blog-API
  1. Run the command in console pip install -r requirements.txt go to that directory and run the above command. This command will install the necessary packages required to run the project.
pip install -r requirements.txt
  1. Go the the directory where manage.py file is present. Run following commands in the cmd
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
  1. You can Run Your API in Postman

The End..⚔️