GithubHelp home page GithubHelp logo

phanuelmutuma / django-vue-starter-blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ericsdevblog/django-vue-starter-blog

0.0 0.0 0.0 10.04 MB

A basic starter blog application created using Django and Vue.js.

JavaScript 9.81% Python 32.63% CSS 0.07% HTML 0.92% Vue 56.57%

django-vue-starter-blog's Introduction

Django Vue.js Starter Blog

A simple blog application created using Django, Vue.js and GraphQL.

Features

  • Including recent posts, category, tag, and post page
  • User registration and login. Built with JWT and Vuex (migrated to Pinia, which is the recommended package for stores).
  • Comment section. Only authenticated users can leave comment, and it won’t show up until approved by the admin.
  • User profile page. Guest user can see and edit all comments that belong to that user.
  • Like system. Guest user can like posts and comments.

Coming Soon

  • Author verification. Guest user can verify to become authors, who can post new articles.

Screenshots

Home Page

Home Page

All Categories

All Categories

All Tags

All Tags

Sign In Page

Sign In Page

Sign Up Page

Sign Up Page

Post Page

Post Page

Comment Section

Comment Section

User Profile Page

User Profile Page

User Profile Page Comment Section

User Profile Page Comment Section

Django Admin Panel

Django Admin Panel

Installation

For the backend, first create a virtual environment.

cd backend
python3 -m venv env
source env/bin/activate

Install required packages.

pip install -r requirements.txt

Run migrations.

python manage.py makemigrations
python manage.py migrate

If you get this error: ImportError: cannot import name 'force_text' from 'django.utils.encoding', you can replace force_text with force_str like this article. This issue should be resolved in future versions of Django.

Start dev server.

python manage.py runserver

For the frontend, install packages.

cd frontend
npm install

If you are getting errors when installing packages, just run npm install --force. Some packages has been deprecated, but everything still work for now. I will try to update this project as soon as possible.

Start frontend dev server.

npm run serve

django-vue-starter-blog's People

Contributors

ericnanhu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.