##Instructions to run this
- Install postgres, create db
newsdb
:
sudo su - postgres
createdb -d newsdb -U admin
ctrl + D
git clone [email protected]:dbajpeyi/hackernews-clone.git
cd hackernews-clone && pip install -r requirements.txt
bower install
cd project && python manage.py collectstatic
python manage.py migrate
python manage.py runserver
- This might fail, need to define auser.py
file for postgres uname and password can't be on github-
- Go to
localhost:8000/register/
- Go to
- Register yourself, login and try it out!!
##CELERY
celery multi start w1 -A settings -l info
to start celery daemoncelery -A settings beat
- Go to settings.py to change the schedule under CELERY_BEAT_SCHEDULER