{"id":17481308,"url":"https://github.com/klis87/flask-blog","last_synced_at":"2025-07-13T16:41:39.784Z","repository":{"id":66177397,"uuid":"66447067","full_name":"klis87/flask-blog","owner":"klis87","description":"Demo blog application in Flask and Ractive.js","archived":false,"fork":false,"pushed_at":"2016-12-17T13:33:26.000Z","size":40,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T01:19:19.197Z","etag":null,"topics":["demo","flask","javascript","python","ractive"],"latest_commit_sha":null,"homepage":"http://ractive-blog.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klis87.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-24T08:43:19.000Z","updated_at":"2021-06-26T23:06:04.000Z","dependencies_parsed_at":"2023-02-20T17:15:33.227Z","dependency_job_id":null,"html_url":"https://github.com/klis87/flask-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klis87%2Fflask-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klis87%2Fflask-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klis87%2Fflask-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klis87%2Fflask-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klis87","download_url":"https://codeload.github.com/klis87/flask-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250246920,"owners_count":21398967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","flask","javascript","python","ractive"],"created_at":"2024-10-18T22:09:21.742Z","updated_at":"2025-04-22T13:23:58.664Z","avatar_url":"https://github.com/klis87.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask blog\r\n============\r\n\r\nDemo blog application in Flask and Ractive.js for\r\n[Build your Django REST with Flask](http://klisiczynski.com//blog/build-your-django-rest-with-flask-orm-part-1/)\r\ntutorial series.\r\n\r\nYou can see it live [here](http://ractive-blog.herokuapp.com/). Please note that this demo doesn't have any back-end,\r\nit is only pure front-end just for quick demonstration. If you would like to play with it, see the next section how to\r\ninstall it.\r\n\r\nHow to run locally\r\n------------------\r\n\r\nThe easiest way to start is by using Docker Compose:\r\n\r\n1) Adjust env variables in `.env` file to your liking (not required), and run:\r\n```\r\n$ docker-compose up -d\r\n```\r\n2) Create PostgreSQL tables with:\r\n```\r\n$ docker-compose exec web python manage.py db upgrade\r\n```\r\n\r\nOr, if you don't want to use Docker, do the following steps:\r\n\r\n1) Install Python dependencies:\r\n```\r\n$ pip install -r requirements.txt\r\n```\r\n2) Edit `config.py` to your liking (this is not required)\r\n\r\n3) Create a PostgreSQL database, for example by typing in psql:\r\n```\r\n$ CREATE DATABASE flask_blog;\r\n```\r\n4) Run below command to create posts table:\r\n```\r\n$ python manage.py db upgrade\r\n```\r\n5) Run the application with:\r\n```\r\n$ python runserver.py\r\n```\r\n\r\nNo matter you used Docker or not, the website will be available at http://127.0.0.1:5000/.\r\nFlask admin panel is accessible at http://127.0.0.1:5000/admin.\r\n\r\nAlso, please note that the app was tested on Python 2.7 and 3.4+.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklis87%2Fflask-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklis87%2Fflask-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklis87%2Fflask-blog/lists"}