Fork from flask_hackernews is a minimalistic hackernews clone.
It uses:
flask
as a web framework.flask-sqlalchemy
as an ORM.SQLite
as a database.heroku
for a simple deployment.- Other less known libraries listed in
requirements.txt
- user authentication
- upvoting on comments and posts
- karma
- user profiles
- post ranking algorithms based on the 'official' one
- comment replies, threading and more!
Follow these instructions if you wish to run this project locally
- clone this repo
$ git clone https://github.com/gixita/pulsarnews
- for server installation
$
- create a virtual environment with the latest python version
- install requirements
(venv) $ pip install -r requirements.txt
-
create a
.env
file in the home directory based on the file.env
-
Modify the variable
is_subdomain_enable = True
tois_subdomain_enable = False
in__init__.py
in theapp
folder, that will deactivate the management of subdomain and enable to uselocalhost
. -
initiate your database
(venv) $ flask db init
(venv) $ flask db migrate -m "first init"
(venv) $ flask db upgrade
- 🎉Run!!🎉
(venv) $ flask run
- visit
http://localhost:5000
to check it out.
Follow these instructions to deploy your to the 🌎
- Heroku: follow this guide.
- Docker: follow this guide.
- Linux: follow this guide.