{"id":14065230,"url":"https://github.com/duarteocarmo/flask_hackernews","last_synced_at":"2025-07-29T20:31:52.335Z","repository":{"id":39844457,"uuid":"156373955","full_name":"duarteocarmo/flask_hackernews","owner":"duarteocarmo","description":"🐍 A Hackernews clone in flask + python + sqlalchemy","archived":false,"fork":false,"pushed_at":"2023-05-01T20:27:22.000Z","size":9050,"stargazers_count":36,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-14T07:08:31.849Z","etag":null,"topics":["flask","hackernews","hackernews-clone","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://hackernews.duarteocarmo.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duarteocarmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-11-06T11:34:31.000Z","updated_at":"2024-05-29T03:13:19.000Z","dependencies_parsed_at":"2024-05-28T00:29:46.513Z","dependency_job_id":"4b62bbf7-6b01-4901-93dc-a26f08e7b599","html_url":"https://github.com/duarteocarmo/flask_hackernews","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/duarteocarmo%2Fflask_hackernews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duarteocarmo%2Fflask_hackernews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duarteocarmo%2Fflask_hackernews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duarteocarmo%2Fflask_hackernews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duarteocarmo","download_url":"https://codeload.github.com/duarteocarmo/flask_hackernews/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046117,"owners_count":17861101,"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":["flask","hackernews","hackernews-clone","sqlalchemy"],"created_at":"2024-08-13T07:04:22.756Z","updated_at":"2024-12-04T04:30:55.013Z","avatar_url":"https://github.com/duarteocarmo.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cdiv align=\"left\"\u003e\n\u003ch1\u003eflask_hackernews\u003c/h1\u003e\n\u003ca href=\"https://www.python.org/downloads/release/python-371/\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/python-3.7.1-blue.svg\"/\u003e\u003c/a\u003e\n\u003c/br\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n[**flask_hackernews**](https://hackernews.duarteocarmo.com/) is a minimalistic hackernews clone. \n\nBuilt so that beginners who want a hackernews-like application can quickly get to work. \n\nGreatly inspired by the awesome [flask megatutorial](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world), one of the best ressources to learn more about flask.\n\nIt uses: \n\n- `flask` as a web framework.\n- `flask-sqlalchemy` as an ORM.\n- `SQLite` as a database.\n- `heroku` for a simple deployment.\n- Other less known libraries listed in`requirements.txt`\n\n\n### Contents\n\n- [Features](#Features)\n- [Set up](#set-up-instructions)\n- [Deployment](#Deployment)\n- [About](#About)\n\n\n### Features\n- user authentication\n- upvoting on comments and posts\n- karma\n- user profiles\n- post ranking algorithms based on the ['official'](https://news.ycombinator.com/item?id=1781417) one\n- comment replies, threading and more!\n\n### Set up Instructions\n\n*Follow these instructions if you wish to run this project locally*\n\n- clone this repo\n\n```bash\n$ git clone https://github.com/duarteocarmo/flask_hackernews\n```\n\n- create a virtual environment with the latest python version\n- install requirements\n\n```bash\n(venv) $ pip install -r requirements.txt\n```\n\n- create a `.env` file in the home directory with the following structure\n\n```python\nFLASK_APP=flasknews.py\nSECRET_KEY = \"yoursecretkey\"\nMAIL_ADMIN_ADDRESS = \u003cadmin_email_adress\u003e\nMAIL_SERVER = \u003cadmin_mail_server\u003e\nMAIL_PORT = \u003cadmin_mail_port\u003e\nMAIL_USE_TLS = 1\nMAIL_USERNAME = \u003cadmin_email_adress\u003e\nMAIL_PASSWORD = \u003cadmin_email_password\u003e\n```\n\n\n\n- initiate your database\n\n```bash\n(venv) $ flask db init\n(venv) $ flask db upgrade\n```\n\n- 🎉Run!!🎉\n\n```bash\n(venv) $ flask run\n```\n\n- visit [`http://localhost:5000`](http://localhost:5000) to check it out.\n\n### Deployment\n\n*Follow these instructions to deploy your to the 🌎*\n\n- Heroku: follow [this guide](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xviii-deployment-on-heroku).\n- Docker: follow [this guide](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xix-deployment-on-docker-containers).\n- Linux: follow [this guide](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvii-deployment-on-linux).\n\n\n### About\n\nThis project was built by duarteocarmo. If you have any questions, [contact me](https://duarteocarmo.com)!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduarteocarmo%2Fflask_hackernews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduarteocarmo%2Fflask_hackernews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduarteocarmo%2Fflask_hackernews/lists"}