Skip to content

This is a template to kick off Cardano projects. Has a Login page with Magic Link, Anonymous Signin & Google Sign in. And it has Eternl, Lace, Yoroi wallets integrated to it.

Notifications You must be signed in to change notification settings

adaOctopus/cardano-project-template

Repository files navigation

Cardano Starter

This tempalte is built with NextJS 15 TS, and it is emant to help Cardano devs kick things off fast.

  • Login with Magic Link, Anonymously, Google
  • Supabase integration
  • Wallet Connection (Eternl, Lace,Yoroi)
  • Wallet integration is done with hooks and with redux-persist
  • you can use const walletState = useAppSelector((state) => state.wallet.wallet);
  • everywhere in you app and access wallet information.

alt text

alt text

How to run

  1. First clone the repo locally
  2. Make sure you cd into the directory
  3. Run the following command to install dependencies
npm i
  1. If it gives you error, force it
npm i --force
  1. The above should work.
  2. Create a .env file
  3. At the root of the project
  4. And put the following variables
NEXT_PUBLIC_SUPABASE_URL=your-projects-url-from-supabase
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
SITE_URL=http://localhost:3000
NEXT_PUBLIC_PREPROD_BLOCKFROST_PROVIDER_ID=your-blockfrost-key
  1. In production, change the SITE_URL accordingly
  2. Make sure you have created account in Supabase, in order to have all the variables needed to run.
  3. Once you are done run npm run dev to run the project locally.
  4. For doing all the related configurations for supabase, check my other template which explains everything in detail: https://github.com/adaOctopus/nextjs-auth-supabase
  5. Make sure you create an API key in Blockfrost for the network in order to integrate the wallets. You add the ID in the env file as shown earlier.

About

This is a template to kick off Cardano projects. Has a Login page with Magic Link, Anonymous Signin & Google Sign in. And it has Eternl, Lace, Yoroi wallets integrated to it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published