Skip to content

Commit

Permalink
dummy values in .env files
Browse files Browse the repository at this point in the history
- also copy tweaks
  • Loading branch information
sampl committed Aug 22, 2018
1 parent 9ca0501 commit 860482c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
16 changes: 8 additions & 8 deletions .env.dev.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
REACT_APP_ENV=dev

REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_API_KEY=1234567890test1234567890replaceme
REACT_APP_FIREBASE_AUTH_DOMAIN=replaceme-12345.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=replaceme-12345

REACT_APP_ALGOLIA_APP_ID=
REACT_APP_ALGOLIA_SEARCH_KEY=
REACT_APP_ALGOLIA_APP_ID=1234567890
REACT_APP_ALGOLIA_SEARCH_KEY=abcdefghijklmnop123

REACT_APP_SENTRY_RAVEN_TRACKING_URL=
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID=
REACT_APP_SENTRY_RAVEN_TRACKING_URL=https://[email protected]/1234567890
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID=UA123456_test

REACT_APP_STRIPE_PUBLIC_KEY=
REACT_APP_STRIPE_PUBLIC_KEY=key_12345678901234567890
16 changes: 8 additions & 8 deletions .env.live.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
REACT_APP_ENV=live

REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_API_KEY=1234567890test1234567890replaceme
REACT_APP_FIREBASE_AUTH_DOMAIN=replaceme-12345.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=replaceme-12345

REACT_APP_ALGOLIA_APP_ID=
REACT_APP_ALGOLIA_SEARCH_KEY=
REACT_APP_ALGOLIA_APP_ID=1234567890
REACT_APP_ALGOLIA_SEARCH_KEY=abcdefghijklmnop123

REACT_APP_SENTRY_RAVEN_TRACKING_URL=
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID=
REACT_APP_SENTRY_RAVEN_TRACKING_URL=https://[email protected]/1234567890
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID=UA123456_test

REACT_APP_STRIPE_PUBLIC_KEY=
REACT_APP_STRIPE_PUBLIC_KEY=key_12345678901234567890
16 changes: 8 additions & 8 deletions .env.stage.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
REACT_APP_ENV=stage

REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_API_KEY=1234567890test1234567890replaceme
REACT_APP_FIREBASE_AUTH_DOMAIN=replaceme-12345.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=replaceme-12345

REACT_APP_ALGOLIA_APP_ID=
REACT_APP_ALGOLIA_SEARCH_KEY=
REACT_APP_ALGOLIA_APP_ID=1234567890
REACT_APP_ALGOLIA_SEARCH_KEY=abcdefghijklmnop123

REACT_APP_SENTRY_RAVEN_TRACKING_URL=
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID=
REACT_APP_SENTRY_RAVEN_TRACKING_URL=https://[email protected]/1234567890
REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID=UA123456_test

REACT_APP_STRIPE_PUBLIC_KEY=
REACT_APP_STRIPE_PUBLIC_KEY=key_12345678901234567890
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ A modern web-app boilerplate with Create React App and Firebase. Focused on simp

- [`/`](https://github.com/sampl/firefly/tree/master) - The root directory just contains configuration files for Firebase, NPM, and git (The `package.json` scripts pull the environment variables from an `.env` file
before calling react-scripts. Learn how it works [here](https://medium.com/@tacomanator/environments-with-create-react-app-7b645312c09d))
- [`/functions`](https://github.com/sampl/firefly/tree/master/functions) - contains the little backend code necessary for the app (just one function to update our search index when a post chances).
- [`/functions`](https://github.com/sampl/firefly/tree/master/functions) - contains a little backend code for updating our search index when a post changes, keeping subscriptions in sync with stripe, and some denormalization of posts.
- [`/public`](https://github.com/sampl/firefly/tree/master/public) - files that will be available as-is when you go live
- [`/scripts`](https://github.com/sampl/firefly/tree/master/scripts) - little javascript scripts you can manually run on your database. Useful for adding dummy data, "migrations", etc.
- [`/scripts`](https://github.com/sampl/firefly/tree/master/scripts) - scripts you can run manually on the database. Useful for adding dummy data, "migrations", etc.
- [`/src`](https://github.com/sampl/firefly/tree/master/src) - contains most of the app. These are create components that are compiled into a single JS file and sent to the user's browser.
- [`/src/actions`](https://github.com/sampl/firefly/tree/master/src/actions) - plain old javascript functions that "do things" in your app like log out or create a post (similar to MVC "controllers")
- [`/src/styles`](https://github.com/sampl/firefly/tree/master/src/styles) - low-level react components for use in your views (replaces your CSS/SASS files)
- [`/src/views`](https://github.com/sampl/firefly/tree/master/src/views) - mostly-stateless react components that show your app's UI ("views" in MVC)
- [`/src/actions`](https://github.com/sampl/firefly/tree/master/src/actions) - plain old javascript functions for changing app data or state, like loging out or create a post (similar to MVC "controllers")
- [`/src/styles`](https://github.com/sampl/firefly/tree/master/src/styles) - style-only react components for use in your views (replaces your CSS/SASS files)
- [`/src/views`](https://github.com/sampl/firefly/tree/master/src/views) - react components that show your app's UI ("views" in MVC)


## License
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ if (process.env.NODE_ENV === 'production') {
window.Raven.config(process.env.REACT_APP_SENTRY_RAVEN_TRACKING_URL).install()
}

// REACT
ReactDOM.render(<App />, document.getElementById('root'))

0 comments on commit 860482c

Please sign in to comment.