Skip to content

Commit

Permalink
Update README.md with deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
MLewkowicz authored Apr 16, 2024
1 parent 8d0ddcb commit fd81b65
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,22 @@ python app.py
"response": "To learn more about personal finance, you can start by taking courses or workshops that focus on financial management, budgeting, investing, and retirement planning. Some universities and educational platforms offer online courses on personal finance, such as ECON 436: Personal Finance and ECON 361: Corporate Finance. Additionally, you can explore resources like books, podcasts, and websites dedicated to personal finance advice and tips. It may also be helpful to consult with a financial advisor or planner for personalized guidance on managing your finances effectively."
}
```
## Deployment

The website is hosted using CloudFront distribution through AWS which is routed to a web server running on Elastic Beanstalk. The code for the frontend and backend are contained in two separate S3 buckets. To update the frontend, we run the following script and disable

```cd frontend
export REACT_APP_API_URL=/api
npm run build
aws s3 sync out/ s3://bluebook-ai-frontend --acl public-read
```
To enable continuous syncing of the CloudFront distribution with the frontend-associated S3 bucket we write the following invalidation rule.

```aws cloudfront create-invalidation --distribution-id bluebook-ai-frontend --paths "/*"
```

For running the Elastic Beanstalk web server, we use the aws EB CLI and run the follow commands in the backend/ folder

```eb init
eb deploy```

0 comments on commit fd81b65

Please sign in to comment.