glue Svelte Themes

Glue

svelte frontend & motoko backend for discord holder verification

glue-logo-wide

development 👷‍♀️

prerequisites

  • dfx 0.10.0

  • node v18.0.2

  • src/frontend/constants.ts file with the following entries:

    • BACKEND_URL
      • provide the URL for both production and development backend
    • REDIRECT_URL
      • provide the URL to redirect users to log in to discord
        • make sure you have two different client_ids and redirect_uris for production and development if you use different discord bots

local deployment

  • run yarn install to install all dependencies
  • to start a local version of the replica and spin up the development server, run yarn dev.

deploying to mainnet

  • run dfx deploy --network ic to deploy the frontend and backend canisters to the mainnet

    :warning: when deploying to mainnet: make sure you delete the canister_ids.json file before deploying to mainnet!

Top categories

Loading Svelte Themes