Skip to content

b1team/tech-blog

Repository files navigation

tech-blog

description

  • Blog site can post, read, update articles
  • Using flask,jinja2, postgresql, alembic

Clone

git clone https://github.com/b1team/tech-blog.git && cd tech-blog

Installing dependencies

pip install -r requirements.txt

Configuration

  1. cp .env.template .env
  2. vim .env and add required configurations

Database migration

  1. Run export PYTHONPATH=$PWD
  2. cd ./src
  3. alembic upgrade head

Run

  1. In tech-blog folder, run export PYTHONPATH=$PWD
  2. run python src/main.py

Development

  1. Upgrade models, migrating models
    In src folder, run alembic revision --autogenerate -m "<your change logs>"
    And run alembic upgrade head to upgrade your database with latest models

Some images

REGISTER

image

LOGIN

image

CREATE NEW POST

image

SHOW ALL POST

image

SHOW POST AFTER SEARCH

image

SHOW POST IN SIMILAR TAG

image

PROFILE

image

EDIT MY POST

image