Skip to content

CAFF-F2C/bid-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

Table of contents

Introduction

Welcome to the CAFF Farm to Cafeteria Bid Generator. This repository contains an application written in Ruby on Rails.

Development

MacOS Dependencies

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

Setting up Rails

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].

Deployment

The Bid Generator relies on the following external services:

  • Postgres
  • Redis
  • Amazon S3
  • Amazon CloudFormation
  • Amazon Simple Queue Service
  • Amazon Simple Email Service

Amazon Web Services

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:

Launch Stack

Heroku

The production instance of Bid Generator is currently deployed to Heroku.

To create your own hosted instance, you can click this button:

Deploy

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published