Giter VIP home page Giter VIP logo

hackernews's Introduction

Hacker News

Hackernews clone that sync with the hackernews website

Technologies

  • Python 3.9: Base programming language for development
  • Django Framework: Development framework used for the application
  • Celery: A simple, flexible, and reliable distributed system to process vast amounts of tasks
  • Django Celery Beat: A Database Period task scheduler
  • Redis: A NoSQL Database that serves as a Celery Broker and Result Backend
  • Github Actions : Continuous Integration and Deployment

How To Start App

  • Clone the Repository
git clone https://github.com/Afeezagbaje/HackerNews.git
  • Then run the following commands consecutively
python3 -m venv venv 
  • To activate virtual environment (MacOS users):
source venv/bin/activate
  • To activate virtual environment (Windows users):
source venv/Source/activate
  • Install dependencies as follows (both MacOS & Windows):
pip3 install -r requirements.txt
  • Make migrations by running the commands below in succession:
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
  • Make sure redis is running on your local machine:
  • Start a Celery worker by running:
celery -A config.celery worker -l info
  • Start a Celery beat by running:
celery -A config.celery beat -l info

Exploring The App

Make sure that all the above servers are running before you start exploring the project. If those servers are up and running, have fun with the app!!!

HackerNews App

You can explore the Hackernews App by going to http://localhost:8000 on your browser. You will be able to see the following features

  1. View list of paginated latest hackersnews
  2. Filter hackernews by type: story, job and poll
  3. Search hackernews by text
  4. Login to Django Admin on http://localhost:8000/admin

API

You can explore the Hackernews App by going to http://localhost:8000 on your browser. The following endpoints are accessible

  1. GET Stories --> http://localhost:8000
  2. GET Filtered news by type
    1. For story --> http://localhost:8000/?f=story
    2. For poll --> http://localhost:8000/?f=poll
    3. For job --> http://localhost:8000/?f=job
  3. GET Story Details --> http://localhost:8000/str:pk/
  4. Search news --> http://localhost:8000/?q=str:query

hackernews's People

Contributors

afeezagbaje avatar

Stargazers

Roman avatar

Watchers

 avatar  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.