Git Product home page Git Product logo

tastebuddy's Introduction

TasteBuddy

TasteBuddy Web Frontend

Env Config

Key .env.development .env.production
GA_MEASUREMENT_ID Get from GA
TASTEBUDDY_API_URL Get from AWS Get from AWS
MOCK_API_RESPONSE Only provide if mocking, any value will resolve to true

Shared Endpoints:

  • Places
  • Feedback

Scripts

Script Description
develop Run dev server (w/ network)
start Run dev server
build Build for prod (prod build w/ prod .env)
build-dev Build for dev (prod build w/ dev .env)
serve Serve built artifact locally (w/ network)
clean Clean using Gatsby's clean command
deploy Prod deploy (build for prod and deploy to gh-pages)

Additional Reference:

Auth

The app uses one Cognito pool for both dev and prod.

  • See Social sign-in (OAuth)
  • See OAuth provider portals (Google, Facebook, etc.)
  • See AWS resources
    • Cognito
    • API Gateway
    • SES (for email verification)
    • Route 53 (for auth domain)
    • Amplify (for auth library)

src/aws-exports.js

Used by the aws-amplify library to configure Auth.

Ignored by git.

/**
 * aws_user_pools_id - Cognito User Pool > General Settings > Pool Id
 * aws_user_pools_web_client_id - Cognito User Pool > App Integration > App Client Id
 * domain - Cognito User Pool > App Integration > Domain name (don't include https://)
 * redirectSignIn - stage specific host url
 * redirectSignOut - stage specific host url
 */ 
const awsmobile = {
	aws_project_region: 'us-east-1',
	aws_cognito_region: 'us-east-1',
	aws_user_pools_id: '',
	aws_user_pools_web_client_id: '',
	oauth: {
		domain: '',
		scope: ['openid', 'email', 'profile'],
		redirectSignIn: '',
		redirectSignOut: '',
		responseType: 'code',
	},
};

export default awsmobile;

tastebuddy's People

Stargazers

 avatar

Watchers

William Cougan avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.