Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dxw/random-referral
https://github.com/dxw/random-referral
delivery-plus
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dxw/random-referral
- Owner: dxw
- Created: 2022-07-08T13:19:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-03T15:54:10.000Z (almost 2 years ago)
- Last Synced: 2023-04-10T16:28:07.430Z (over 1 year ago)
- Topics: delivery-plus
- Language: Ruby
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random Referral
This is a web service to allow people to find referral codes from other people
at dxw.https://dxw-random-referral.herokuapp.com/
## Why?
We have a spreadsheet that stores referral codes for various products and
services that dxw folks have purchased.[Spreadsheet](https://docs.google.com/spreadsheets/d/1fAIEUS1w8wiTfyzrdODdFknuAZdPTrmgc5imZ0ZvNtk/edit?usp=sharing)
This was set up to help folks make greener choices. It was then decided that it
would help make it fairer for all those who added codes if the access was
randomised. So we made this!## How to run it locally
```
bundle exec rails server
```You will need to set some environment variables to tell the service how to
authenticate with Google Drive. 1Password has a `.env` file you can use
(under Random referral within the Rails 1password vault), or you can create
your own service account and share the spreadsheet with it.