Buncha
Buncha is crowdsourced calendar of local specials and game nights (happy hours, trvia, karaoke, etc.). It is available on the App Store and the Play Store
Requirements
Dev Instructions
- Start running elasticsearch somewhere (Docker, AWS, locally, etc)
- Install Firebase globally
npm -g install firebase-tools
- Run
firebase init
in the root directory and enable Hosting, Functions, and Firestore - Create a
.env
file in thefunctions
directory
GOOGLE=GOOGLE_MAPS_API_KEY_WITH_PLACES_API_ENABLED
AWSES=ELASTICSEARCH_URL
POSTCODE=ANYTHING_YOU_WANT
- Run
npm i
in thefunctions
directory - Run
yarn
in thefrugalapp
directory - Create an IAM role with full S3 access and save the keys in an
aws.json
file in thefunctions
directory
{
"accessKeyId": "",
"secretAccessKey": "",
"region": ""
}
- Make an S3 bucket named
buncha
and a Cloudfront distribution for that bucket. Put that url infrugalapp/CONSTANTS.js
asAWSCF
- Setup elasticsearch indexes by running
yarn elastic
in the root directory and issue the following commands
elastic.events.map();
elastic.locations.map();
elastic.reminders.map();
elastic.users.map();
- Put your Firebase Functions url in
frugalapp/API.js
App: yarn start
Local Firebase Functions: yarn server
Deploy Firebase Functions: yarn deploy
Deploy Firebase Hosting: yarn web