-
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.
added documentation, removed SQLAlchemy.
- Loading branch information
Zachary Hanif
committed
Nov 9, 2019
1 parent
5ded36c
commit 7b90e1f
Showing
2 changed files
with
31 additions
and
14 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 |
---|---|---|
@@ -1,9 +1,32 @@ | ||
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 | ||
|
||
git clone https://github.com/zhanif3/818_search.git | ||
|
||
# First, install the needed python environnment | ||
virtenv env | ||
cd 818_search | ||
python3 -m venv env | ||
|
||
# Run the virtual environment | ||
source env/bin/activate | ||
|
||
# Install needed python packages | ||
pip install pipfile | ||
(env)$ pip install flask | ||
(env)$ pip install psycopg2 | ||
|
||
|
||
# Set up the database (DO NOT DO THIS ON AWS SERVER) | ||
# sudo -u postgres psql | ||
sudo -u postgres createuser --interactive | ||
818project, y | ||
sudo -u postgres createdb sammy | ||
sudo adduser sammy | ||
sudo -i -u sammy | ||
psql | ||
|
||
# What DB am I connected to? | ||
\conninfo |
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