Team Members: Cynthia Wang, Roy Xiong, Samia Zaman, Jane Zhang
Project: Mini-Amazon
Team Name: Databaes
Link to Github Repository: https://github.com/jjanezhang/databaes-project
- Clone this repo
git clone [email protected]:jjanezhang/databaes-project.git
- Change directory to databaes-project
cd databaes-project
- Switch environments, you should see a
(env)
prefix in the command prompt
source env/bin/activate
- Start Postgres
MacOS:
brew services start postgresql
Linux:
sudo service postgresql start
- Open
.flaskenv
and change the variablesDB_USER
andDB_PASSWORD
to your own Postgres credentials. Then run the following command:
db/setup.sh
Follow the instructions and enter your password when prompted.
- Run flask
flask run
-
Go to http://localhost:5000/ and start using Mini Amazon!
-
To stop the website, press CtrlC in the shell where flask is running.
- Run db/generated/gen.py. This should generate a couple of csv files.
- Copy these csv files over to db/data.
- Run db/setup.sh, and the test dataset should be loaded into Postgres!