Skip to content

rishank-shah/drf-blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

drf-blog-api

Task: Create a blogging portal using Django REST framework comprising of the following features:

  • Users should be able to log in.
  • Logged-in users should be able to write a blog(text only).
  • Logged-in users should be able to view anyone’s blog and comment on it.
  • Logged-in users should be able to delete their own blog.
  • Minimal Frontend. (Won’t be evaluated).

Steps To run the project:

Requirements to run project are node, python3.8.2(32-bit), virtualenv, git-bash

NOTE: If running on windows please use git-bash

git clone https://github.com/rishank-shah/drf-blog-api.git
cd drf-blog-api
cd frontend-blog
npm install
cp .env.example .env
npm run build
cd ../backend-blog
virtualenv venv --python=python3.8.2
source venv/Scripts/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

If all commands work site will be on http://localhost:8000

API documentation is at http://localhost:8000/api-docs/

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published