Make sure you have Python 3 on your system
Flask
as the web framework.bootstrap-journal
to make them beautiful.virtualenv
emcompasses everything.MySQL
for database.pytest, unittest
for testing.
subreddits
user karma
search
upvoting
downvoting
comments
user history
collections
feed
A step by step series of examples to get development running
$ git clone https://github.com/ndina/Reddit-Flask.git
$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ python3 run.py
http://localhost:5000/
Explanation how to run the automated tests for this system
testing using pytest
$ pytest -m <test-name>.py
testing using unittest
$ python -m unittest tests/unittest_sample.py
You can use docker run
command and run an app on any machine:
$ docker run -p 4000:80 dina2505/redditclone