Skip to content

digitalcredentials/web-verifier-plus

Repository files navigation

VerifierPlus

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Installing the Server

$ asdf install
$ npm i --legacy-peer-deps
  • you do not need to use asdf to install the dependencies, you may use another package manager of your choice. As long as the proper version(s) listed in .tool-versions are installed this will work for you.

Running the Server

$ yarn dev

This creates a dev server hosted at http://localhost:3000, open it in your browser while this is running in the command line

Editing the Page

Modify pages/index.tsx

  • The page auto-updates as you edit the file.

API Routes

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

  • The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

MongoDB

This app currently requires MongoDB for its backend storage. To set up MongoDB for this app:

  • create an Mongo Atlas cluster.
  • From there create a collection, as well as a user with read and write permissions.
  • Copy .env.example, and rename the copy .env
  • Copy all the information from your Atlas cluster into the appropriate fields in the .env file.