项目作者: syqu22

项目描述 :
Blog App made using Django and React
高级语言: Python
项目地址: git://github.com/syqu22/django-react-blog.git
创建时间: 2021-06-02T09:25:27Z
项目社区:https://github.com/syqu22/django-react-blog

开源协议:MIT License

下载


django-react-blog

Blog web application written using Javascript with React for Frontend, Python with Django for Backend and PostgreSQL as a default database.

Features

  • Publish posts as a verified staff member
  • Read public posts
  • Write/read comments
  • Fully functional user with password veryfing/reseting using e-mail
  • Authentication thanks to JWT Tokens

Screenshots

Click to see more

image
image
image
image
image

Installation

  1. First clone the repository to use it localy:

    1. git clone https://github.com/syqu22/flask-pastebin.git

    Then install all required libraries through:

    1. pip install -r requirements.txt
  2. Rename the .env.sample to .env, then fill it with all the needed keys. POSTGRES is for the database access, EMAIL is for the email authentication and SECRET_KEY is the secret key for the application.

  3. Now you need to create a Postgre database with name blog_db then do all the migrations using command:

    1. py manage.py makemigrations

    and:

    1. py manage.py migrate
  4. For the frontend you need to run these commands from the /frontend folder:

    1. npm install

    to download all the needed NPM packages and then to start the frontend Dev server:

    1. npm run dev
  5. Finally you can start the frontend server from base project folder by running:

    1. py manage.py runserver