https://github.com/magiclabs/example-hasura
https://github.com/magiclabs/example-hasura
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/magiclabs/example-hasura
- Owner: magiclabs
- Created: 2021-01-09T22:05:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T06:55:13.000Z (almost 3 years ago)
- Last Synced: 2023-07-26T18:33:26.817Z (almost 3 years ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 6
- Watchers: 4
- Forks: 5
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo
https://magic-hasura.vercel.app/login
# Quick start instructions
```txt
$ git clone https://github.com/magiclabs/example-hasura.git
$ cd example-hasura
$ mv .env.local.example .env.local
$ yarn install
$ yarn dev
```
# .env.local File
```txt
NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEY=your-magic-publishable-key
MAGIC_SECRET_KEY=your-magic-secret-key
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
JWT_SECRET=your-32+-character-secret
NEXT_PUBLIC_HASURA_GRAPHQL_URL=your-graphql-api-server
```
- _Note one: if you just want authentication, and not the to-do list, delete the `/components/todo` folder and the reference to `` in `index.js`._
- _Note two: the tutorial was built using Magic UI components. If you swap them out for your own custom CSS, you can also delete the `_app.js` and `_document.js` files, and `@magiclabs/ui`, `framer-motion` and `rxjs` from your `package.json` dependencies._
# Tutorial
https://magic.link/posts/magic-hasura