GithubHelp home page GithubHelp logo

ynab-static's Introduction

YNAB Static Site

This is a work in progress static site allowing you to generate a static version of your budget for sharing. I use this with my partner to allow them to see our current account balances and budget without the need to share a YNAB password.

This uses Gatsby and a custom plugin which pulls the data from the YNAB API and builds out a static version of the site. This means no API keys are needed to serve the site just to build. It is also offline ready so can be installed as an "app" on mobile devices.

I use this with Netlify for an easy hosting option.

I have auth setup with Auth0, this allows users to be added and give them the ability to set and reset their own passwords. I disabled registration so users can only be added by an admin of the Auth0 Account.

Note on Auth

This is a static site with a React front end. When we build the static site we query the YNAB api and get your budget data. Since we need that data to render the app it's stored as JSON in the site. If someone determined the path to this JSON file they could read some of the details of your budget, including account names, account balances, budget categories, amounts, and spending. So please be concious of this.

Tasks before first RC release

  • Change out auth for string matching to use auth0 or netlify identity.
  • Improve Category Navigation

Deployment

  • You'll need to set the following env variables to deploy.
  • YNAB_API_KEY - The API key from YNAB
  • GATSBY_USERNAME - The username used to login to the site
  • GATSBY_PASSWORD - The password used to login to the site
  • GATSBY_AUTH0_DOMAIN The domain of your Auth0 App
  • GATSBY_AUTH0_CLIENT_id The client id of your Aut0 App

ynab-static's People

Contributors

sloped avatar

Watchers

James Cloos avatar  avatar

Forkers

josephkerkhof

ynab-static's Issues

Site fails to build

Description

Installing a fresh clone of this site on my local computer renders build errors when running npm run build. My errors are listed below.

ERROR #11321  PLUGIN

"gatsby-source-ynab" threw an error while running the sourceNodes lifecycle:

[object Object]

I've done some searching to try and resolve the issue and it seems like it could be a package dependency problem or the export.sourceNodes.

Also, my site fails to build in Netlify and fails in the same way.

Auth0 Configuration

What is your Auth0 configuration?

What values do you put in for Allowed Callback URLs and Allowed Logout URLs? Do you use any other settings?

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.