-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4ca883
commit f6cda06
Showing
1 changed file
with
15 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,53 +4,42 @@ | |
ssh -i ~/Downloads/DNS.pem [email protected] | ||
|
||
### Install Packages | ||
sudo apt-get update | ||
|
||
sudo apt-get install python3-pip | ||
|
||
sudo apt-get install python3-venv | ||
|
||
sudo apt-get install postgresql-server-dev-10 | ||
|
||
<br>sudo apt-get update | ||
<br>sudo apt-get install python3-pip | ||
<br>sudo apt-get install python3-venv | ||
<br>sudo apt-get install postgresql-server-dev-10 | ||
For mac: | ||
brew install redis | ||
|
||
git clone https://github.com/zhanif3/818_search.git | ||
<br>brew install redis | ||
<br>git clone https://github.com/zhanif3/818_search.git | ||
|
||
### First, install the needed python environnment | ||
cd 818_search | ||
|
||
python3 -m venv env | ||
<br> python3 -m venv env | ||
|
||
### Run the virtual environment | ||
source env/bin/activate | ||
|
||
### Install needed python packages | ||
(env)$ pip install flask | ||
|
||
(env)$ pip install psycopg2 | ||
|
||
<br>(env)$ pip install psycopg2 | ||
|
||
### Set up the database (DO NOT DO THIS ON AWS SERVER) | ||
sudo -u postgres createuser --interactive | ||
818project, y | ||
|
||
sudo -u postgres createdb sammy | ||
<br> sudo -u postgres createuser --interactive | ||
<br>    818project, y | ||
|
||
sudo adduser sammy | ||
<br> sudo -u postgres createdb sammy | ||
|
||
sudo -i -u sammy | ||
<br> sudo adduser sammy | ||
|
||
psql | ||
<br> sudo -i -u sammy | ||
<br> psql | ||
|
||
### What DB am I connected to? | ||
\conninfo | ||
|
||
## Run instructions | ||
|
||
redis-server | ||
|
||
python server.py | ||
<br>python server.py | ||
|
||
Visit URLs on browser: | ||
<br> Upload csv files of the format [query ID],[score_name],[score] here: http://localhost:5000/upload | ||
|