Coder Social home page Coder Social logo

dbmx / flask_hackernews Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duarteocarmo/flask_hackernews

0.0 0.0 0.0 8.83 MB

๐Ÿ A Hackernews clone in flask + python + sqlalchemy

Home Page: https://hackernews.duarteocarmo.com/

License: MIT License

Python 73.55% HTML 24.94% Mako 1.10% CSS 0.42%

flask_hackernews's Introduction

flask_hackernews



flask_hackernews is a minimalistic hackernews clone.

Built so that beginners who want a hackernews-like application can quickly get to work.

Greatly inspired by the awesome flask megatutorial, one of the best ressources to learn more about flask.

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/duarteocarmo/flask_hackernews
  • 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 with the following structure
FLASK_APP=flasknews.py
SECRET_KEY = "yoursecretkey"
MAIL_ADMIN_ADDRESS = <admin_email_adress>
MAIL_SERVER = <admin_mail_server>
MAIL_PORT = <admin_mail_port>
MAIL_USE_TLS = 1
MAIL_USERNAME = <admin_email_adress>
MAIL_PASSWORD = <admin_email_password>
  • initiate your database
(venv) $ flask db init
(venv) $ flask db upgrade
  • ๐ŸŽ‰Run!!๐ŸŽ‰
(venv) $ flask run

Deployment

Follow these instructions to deploy your to the ๐ŸŒŽ

About

This project was built by duarteocarmo. If you have any questions, contact me!

flask_hackernews's People

Contributors

dependabot[bot] avatar duarteocarmo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.