/frugalmaps

Calendar for sharing happy hours, game nights, local specials, etc

Primary LanguageJavaScript

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

Yarn

Node

Expo

Dev Instructions

  1. Start running elasticsearch somewhere (Docker, AWS, locally, etc)
  2. Install Firebase globally npm -g install firebase-tools
  3. Run firebase init in the root directory and enable Hosting, Functions, and Firestore
  4. Create a .env file in the functions directory
GOOGLE=GOOGLE_MAPS_API_KEY_WITH_PLACES_API_ENABLED
AWSES=ELASTICSEARCH_URL
POSTCODE=ANYTHING_YOU_WANT
  1. Run npm i in the functions directory
  2. Run yarn in the frugalapp directory
  3. Create an IAM role with full S3 access and save the keys in an aws.json file in the functions directory
{
  "accessKeyId": "",
  "secretAccessKey": "",
  "region": ""
}
  1. Make an S3 bucket named buncha and a Cloudfront distribution for that bucket. Put that url in frugalapp/CONSTANTS.js as AWSCF
  2. 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();
  1. 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