https://github.com/noumanahmad448/flask-blog-posts
An open source project for hands on experience all developed in flask framework
https://github.com/noumanahmad448/flask-blog-posts
bootstrap bootstrap4 flask-login flask-migrate flask-sqlalchemy gunicorn jquery nginx sqlite3 virtual-environment wtforms
Last synced: 4 months ago
JSON representation
An open source project for hands on experience all developed in flask framework
- Host: GitHub
- URL: https://github.com/noumanahmad448/flask-blog-posts
- Owner: NoumanAhmad448
- License: mit
- Created: 2023-08-28T07:45:49.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T04:41:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T01:48:53.502Z (6 months ago)
- Topics: bootstrap, bootstrap4, flask-login, flask-migrate, flask-sqlalchemy, gunicorn, jquery, nginx, sqlite3, virtual-environment, wtforms
- Language: Python
- Homepage: https://flask.lyskills.com
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blog Posts Project
### An app that can create blogs. The main purpose to create this app to practice flask skills and make the source code available online for other developers to start this repo for their own custom need## Setup (Recommended)
1. install anaconda
2. create an environment using
``` conda create -n "flask-blog-posts" python=3.10```
3. run ```conda activate flask-blog-posts```
4. run ```pip install -r requirements.txt```
5. flask run## Deployment
1. Please refer to [https://flask.lyskills.com](https://flask.lyskills.com) for website reference
2. Do not work to create .env and instance/db.sqlite3 file and change permission
```
chown root .env
chown root instance/db.sqlite3
```
2. All deployment is made using ```gunicorn & nginx```. You may refer to [this](https://github.com/NoumanAhmad448/django-blog-posts/blob/master/deployment.md)## Commands
### Langauges
```
pybabel extract -F flask-babel.cfg -o messages.pot .
pybabel init -i messages.pot -d translations -l zh
pybabel compile -d translations
```
```
pybabel update -i messages.pot -d translations
```### migrations
run once
```
flask db init
```
```
flask db migrate -m "Initial migration."
```
```
flask db upgrade
``````
flask db revision --rev-id 215a43277d61
```## minify css and js
```
css-html-js-minify.py static/
```