v2.0.1
What's Changed
- Princegeutler map change by @princegeutler in #65
- Update app.tsx by @princegeutler in #67
- Passing sql aidan by @princegeutler in #68
- Added line that was taken out during merge. by @AidanScharnikow in #69
- Display result by @AidanScharnikow in #70
- Last minute pull by @princegeutler in #71
Full Changelog: v2.0.0...v2.0.1
How to run this project
- Requirements: Python, JavaScript, npm, yarn
- API keys: OpenAI key, Google maps api key
- AWS EC2 instance, mysql db hosted within EC2 instance (we're using mariadb)
- create python virtual enviornment on MacOS:
python3 -m venv venv
activate: venv/bin/activate
ORsource venv/bin/activate
OR for windows:python -m venv <path>
./venv/Scripts/activate
- Install backend dependencies:
$pip install -r requirements.txt
- React setup:
npm install
ornpm ci
- to run react setup in development:
npm start
- running flask backend (dev): python3 server.py
- If you're having trouble with @react-google-maps/api try using
yarn add @react-google-maps/api
- If you're having trouble with npm try:
npm install --force
- you will need a .env file with the following: OPENAI_API_KEY, SSH_HOST, SSH_PORT, SSH_USERNAME, SSH_PRIVATE_KEY (Note: this is the path to the .pem file for EC2 instance), MYSQL_HOST, MYSQL_PORT, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DB
- You will also need the .cer/.pem file to access EC2 instance.