Welcome to the CAFF Farm to Cafeteria Bid Generator. This repository contains an application written in Ruby on Rails.
You will need the following packages on your system:
- Postgres
- Ruby 3.0
- Node 14
- Libvips
You can install all of these dependencies with Homebrew:
$ brew install postgres ruby node yarn vips
In order to start the application locally, you will need to copy the .env.example
file to .env
and configure your database:
$ cp .env.example .env
$ bin/rails db:setup
You can then start the Bid Generator application by using the Heroku CLI:
$ heroku local
Alternatively, you can start the Rails server directly:
$ bin/rails server
The Bid Generator application will then be visible at [http://localhost:3000].
The Bid Generator relies on the following external services:
- Postgres
- Redis
- Amazon S3
- Amazon CloudFormation
- Amazon Simple Queue Service
- Amazon Simple Email Service
You will need an AWS account.
The Bid Generator uses the CloudFormation service to automate deployment. To create a CloudFormation stack of your own, you can click this button:
The production instance of Bid Generator is currently deployed to Heroku.
To create your own hosted instance, you can click this button:
You will need to enter the following environment variables, accessible inside of the CloudFormation stack created above, under the Outputs tab:
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- BUCKET_NAME
- CDN_HOST
- DEFAULT_QUEUE_URL