Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmisankepally committed Dec 12, 2019
1 parent e4ca883 commit f6cda06
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>&nbsp&nbsp&nbsp 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
Expand Down

0 comments on commit f6cda06

Please sign in to comment.