Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 779 Bytes

File metadata and controls

30 lines (17 loc) · 779 Bytes

NewsdiffHK

This is the backend of Newsdiff HK.

The frontend lives here, and the news scrapper lives here

Inspired by and modified from similar projects in Taiwan and US.

Dev Environment Setup

Install mongodb and start it up:

$mongod --dbpath <path to ur dev db>

To create a virtual environment and install the dependencies:

$ virtualenv -p python3 newsdiff
$ source newsdiff/bin/activate
$ pip3 install -r requirements.txt

To start API handling:

$ gunicorn api:app

To deactivate the virtual environment after use:

$ deactivate