File and folder naming convention for React.js components
/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
<!-- | |
Craft a meaningful explanation for why this tweak matters and outline the awesome updates you've implemented. Feel free to toss in some snazzy screenshots if you've got 'em. ✨ | |
--> | |
### 🚀 What's new | |
- [ ] Some change... | |
- [ ] | |
### 📣 Special notes for reviewer |
Allow retrieving an OAuth 2.0 authentication token for interacting with Google services using the service account key.
Base64-encode your service account JSON key and save it to *.env
files (GOOGLE_CLOUD_CREDENTIALS
)
import { getAuthToken, Env } from "core";
export default {
The following demonstrates how to load environment variables and secret values into a software project for local development.
Step 1
]: Create secret records in Google Secret ManagerStep 2
]: Save environment variables and secret references to .env
file(s)Step 3
]: Add a call to loadEnv(environment, options)
where you need those variablesI hereby claim:
To claim this, I am signing this object:
The basic structure of a React+Flux application (see other examples)
- /src/actions/AppActions.js - Action creators (Flux)
- /src/components/Application.js - The top-level React component
- /src/constants/ActionTypes.js - Action types (Flux)
- /src/core/Dispatcher.js - Dispatcher (Flux)
- /src/stores/AppStore.js - The main store (Flux)
Install got
and oauth-1.0a
NPM dependencies.
import { TwitterClient } from "./twitter";
// Initializes a new Twitter client using OAuth 1.0a credentials
const twitter = new TwitterClient({
// Twitter App credentials (API key and secret)
Assuming you have the root-level main.yml
and a couple of reusable workflows main-a.yml
and main-b.yml
.
Your goal is to run the the workflows A and B automatically as part of the main (root) workflow as well as being able to fire up them manually one by one for different environments.
The top-level (root) workflow would looks something like this:
..with .NET / F# (or Node.js / Express), AngularJS (or Facebook React + RxJS), TypeScript, Gulp.js (or Grunt), NuGet...