Simple Blog API that have similar functionality like Instagram with Best Partice in DRF and a feasible solution
-> Django Framework | Django Rest Framework
-> SQLite
-> Pre-Commit
-
Before the following steps make sure you have git installed on your system.
-
Download and Install Python required version.
-
Read about virtualenv in Python. Create a virtual environment for your project.
pip install virtualenv
virtualenv virtualenv_name
- 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
- 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
- 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
- You can Run Your API in Postman