Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HeatMint committed Sep 18, 2018
1 parent c0dfcb2 commit 098653f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
To collect most common browser size for most computer.
Since we won't work on so much time of solving problems for different resolution of browser,
we will collect the most common browser's resolution by using this.

## How to deploy
1. You should have a python 2 environment, I developed it with python 2.7.14
2. You should have these libraries: sqlite3, flask, Tornado. sqlite3 should be in python standard library,
which means you are most likely already having it, flask and Tornado can be installed via pip.
`pip install flask`+`pip install Tornado`
3. Create a database (.db file) in src, following the code in data.sql.
4. Open the "main.py", change the port you want in the last few lines of codes here
`http_server.listen(5000)`
5. Run main.py

0 comments on commit 098653f

Please sign in to comment.