https://github.com/klis87/flask-blog
Demo blog application in Flask and Ractive.js
https://github.com/klis87/flask-blog
demo flask javascript python ractive
Last synced: about 1 month ago
JSON representation
Demo blog application in Flask and Ractive.js
- Host: GitHub
- URL: https://github.com/klis87/flask-blog
- Owner: klis87
- Created: 2016-08-24T08:43:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-17T13:33:26.000Z (over 8 years ago)
- Last Synced: 2024-10-19T01:19:19.197Z (8 months ago)
- Topics: demo, flask, javascript, python, ractive
- Language: JavaScript
- Homepage: http://ractive-blog.herokuapp.com/
- Size: 39.1 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Flask blog
============Demo blog application in Flask and Ractive.js for
[Build your Django REST with Flask](http://klisiczynski.com//blog/build-your-django-rest-with-flask-orm-part-1/)
tutorial series.You can see it live [here](http://ractive-blog.herokuapp.com/). Please note that this demo doesn't have any back-end,
it is only pure front-end just for quick demonstration. If you would like to play with it, see the next section how to
install it.How to run locally
------------------The easiest way to start is by using Docker Compose:
1) Adjust env variables in `.env` file to your liking (not required), and run:
```
$ docker-compose up -d
```
2) Create PostgreSQL tables with:
```
$ docker-compose exec web python manage.py db upgrade
```Or, if you don't want to use Docker, do the following steps:
1) Install Python dependencies:
```
$ pip install -r requirements.txt
```
2) Edit `config.py` to your liking (this is not required)3) Create a PostgreSQL database, for example by typing in psql:
```
$ CREATE DATABASE flask_blog;
```
4) Run below command to create posts table:
```
$ python manage.py db upgrade
```
5) Run the application with:
```
$ python runserver.py
```No matter you used Docker or not, the website will be available at http://127.0.0.1:5000/.
Flask admin panel is accessible at http://127.0.0.1:5000/admin.Also, please note that the app was tested on Python 2.7 and 3.4+.