Giter Site home page Giter Site logo

recipes_frontend's Introduction

Deprecated after Heroku shut down their free tier. Replaced by: https://github.com/mathiastj/recipes-frontend which uses supabase as the backend

Recipes Frontend

My personal cooking recipes, not publicly available.

Motivation

Keeping track of cooking recipes and easily searching for titles and ingredients instead of leafing through a book.

Technical motivation

  • Wanted to try out Hasura and React Admin.
  • See how quick it was to spin up a new CRUD app.

The project is using Hasura hosted on a free Heroku dyno.
https://github.com/Steams/ra-data-hasura-graphql is used as a data provider to connect the Hasura backend to the React Admin frontend.

recipes_frontend's People

Contributors

mathiastj avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

recipes_frontend's Issues

Add category

As a field in recipes
Make it a foreign key so categories can be edited too?

Very ugly auth

Authentication and authorization is very ugly since I don't have an auth service.

I'm using 'x-hasura-admin-secret' directly, and I enter this as a password on login.

I've used a few hacks to create a dataProvider before login and switch after login:

  • Create a bogus dataProvider preAuthDataProvider. This causes a warning to be shown on the login page due to it not living up to the spec completely.
  • Force the page to refresh in the authProvider upon login, so that I can switch the data provider to the actual one now that I have the secret to authorize with.

Trying to call the hasura backend without the secret or with a wrong secret causes react admin to throw a hard error and makes the site unusable.

There's also no protection setup against XSS.

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.