Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Wordcel/wordcel-oss-dapp-ui

Repository files navigation

Opengraph


Getting Started

  1. Create a .env.local file and populate it with a PostgreSQL Database URL, Admin Public Key and RPC Url
POSTGRES_URL=
NEXT_PUBLIC_ADMIN_PUBLIC_KEY=
NEXT_PUBLIC_MAINNET_ENDPOINT=
  1. Install all dependencies
yarn
  1. Generate the Prisma client
yarn prisma generate
  1. Deploy the Prisma schema
yarn prisma db push
  1. Run the development server
yarn dev
  1. Open the Prisma GUI to add values to your db
yarn prisma studio

Deploying with Vercel

Prerequisites:

  • A Vercel account.
  • A GitHub account.

Step-by-step Guide:

  1. Use the 'Deploy with Vercel' Button:

    Deploy with Vercel

    Clicking on the button will navigate you to the Vercel platform for deployment initialization. Through this process:

    • A new repository is created in your GitHub account with the source code.
    • A PostgreSQL storage instance is set up on Vercel. If you're inclined to use an external PostgreSQL instance, you'll need to set the POSTGRES_URL environment variable in the Vercel app.

    During this deployment phase, be ready to provide values for certain environment variables (NEXT_PUBLIC_ADMIN_PUBLIC_KEY and NEXT_PUBLIC_MAINNET_ENDPOINT).

  2. Post-Deployment Configurations:

    Should you decide to host your PostgreSQL externally, make it a point to whitelist the Vercel deployment URL, ensuring uninterrupted access for the application to the database.