Giter VIP home page Giter VIP logo

tutorial-resources's Introduction

Tutorial Resources

This repo contains starter apps, samples, and other resources that you may need to use alongside some of the tutorials provided by Plaid. They are not intended to be used as standalone samples. Please see the Quickstart, the Tiny Quickstart, or the Plaid Pattern samples if you're looking for working sample apps.

Contents

How to use this repository

Every resource should be contained in its own directory, with a start and finished folder. You should open up the start folder and follow along with the corresponding tutorial.

The finished folder is there if you get really stuck and need to compare your sample to a working copy. We recommend you don't just copy code from the finished folder without going through the tutorial -- you won't learn anything, and we will silently judge you for it. ๐Ÿ‘€

tutorial-resources's People

Contributors

toddkerpelman avatar dependabot[bot] avatar snyk-bot avatar phoenixy1 avatar alexandersandberg avatar rettbehrens avatar

Stargazers

 avatar Joe Poptiya avatar daniel wood avatar Asim Mehmood avatar Monte Logic avatar Sahir Sharuz avatar Franco Lombardo avatar Elton Lin avatar Yiping Wang avatar Husam Alrubaye avatar Aaron Oliver avatar Josiah Saunders avatar Christopher Hicks avatar Jonathan Wagenknecht avatar Shashi Kumar Nagulakonda avatar  avatar Paul Bors avatar James Grams avatar

Watchers

zach perret avatar  avatar Nathan Tindall avatar  avatar  avatar

tutorial-resources's Issues

simple-js-oauth displays `Error: secret option required for sessions` in log and UI

I tried running simple-js-oauth. It starts, but I get the error when I open http://localhost:8000. See the error at the end of this issue.

To workaround the problem, I googled the error and found a one-line workaround. I edited server.js to set a missing secret in the app object.

const app = express();
app.use(session({ secret: 'somevalue' })); // The fix
const moment = require("moment");

Please consider adding the missing secret, otherwise simple-js-oauth doesn't run properly and gives the following error in UI and log.

Error: secret option required for sessions
    at session (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express-session/index.js:200:12)
    at Layer.handle [as handle_request] (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/index.js:323:13)
    at /Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/index.js:341:12)
    at next (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/index.js:275:10)
    at expressInit (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/middleware/init.js:40:5)
    at Layer.handle [as handle_request] (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/index.js:323:13)
    at /Users/jcranford/github/workspaces/plaid/tutorial-resources/worktree/oauth2/vanilla-js-oauth/start/node_modules/express/lib/router/index.js:284:7

npm install fails

npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://artifact.plaid.io/artifactory/api/npm/npm-all/raw-body/-/raw-body-2.4.2.tgz failed, reason: getaddrinfo ENOTFOUND artifact.plaid.io

Two solutions - delete package-lock.json and npm i or find and replace artifact.plaid.io/artifactory/api/npm/npm-all with registry.npmjs.org in existing package-lock.json and npm i

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.