Skip to content

gixita/pulsarnews

Repository files navigation

PulsarNews


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 inrequirements.txt

Contents

Features

  • user authentication
  • upvoting on comments and posts
  • karma
  • user profiles
  • post ranking algorithms based on the 'official' one
  • comment replies, threading and more!

Set up Instructions

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 to is_subdomain_enable = False in __init__.py in the app folder, that will deactivate the management of subdomain and enable to use localhost.

  • initiate your database

(venv) $ flask db init
(venv) $ flask db migrate -m "first init"
(venv) $ flask db upgrade
  • 🎉Run!!🎉
(venv) $ flask run

Deployment

Follow these instructions to deploy your to the 🌎

About

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published