Giter Site home page Giter Site logo

donibaskoro / notes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daneburkland/notes

0.0 1.0 0.0 1.36 MB

A note taking app inspired by Roam Research

Home Page: https://linked-notes.netlify.app/

License: MIT License

JavaScript 0.38% HTML 0.16% TypeScript 6.10% CSS 93.37%

notes's Introduction

Notes

A bidirectional note taking app inspired by Roam Research. Live demo

Context behind this project: https://www.afforded.space/note-taking-in-public/

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Setting up a GraphQL server

To set up a Hasura GraphQL API + Postgres database (with correct schema) on Heroku's free tier, first follow the one click deploy here.

After the Heroku app has finished deploying, click the 'View' button. Your GraphQL endpoint will be listed at the top of the 'GraphiQL' tab.

To allow your app to talk to your backend, you'll need to set a REACT_APP_GRAPHQL_ENDPOINT_DEV (REACT_APP_GRAPHQL_ENDPOINT_PROD) environment variable with that endpoint.

Finally, copy the correct schema to your Postgres database:

heroku pg:backups:restore https://notes-schema.s3.amazonaws.com/latest.dump DATABASE --app <YOUR_HEROKU_APP_NAME>

Deployment

If you'd like to deploy your app, Netlify is a great option:

npm run build
netlify deploy

Authentication

This app is set up to use Auth0 as an optional authentication provider. To secure your GraphQL endpoints, follow these steps. Next, follow these Auth0 integration steps. Lastly, you'll need to set the appropriate environment variables: REACT_APP_AUTH0_DOMAIN, REACT_APP_AUTH0_CLIENTID, REACT_APP_AUTH0_REDIRECT_URI_PROD (REACT_APP_AUTH0_REDIRECT_URI_DEV). Permissions can then be assigned by role in the Hasura GUI.

notes's People

Contributors

daneburkland avatar

Watchers

James Cloos avatar

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.