Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Backend environment file

qedk edited this page Nov 9, 2021 · 4 revisions
PORT=5000
COOKIE_NAME=drecruit-session
COOKIE_KEY=
DID_KEY=
CONTRACT_ADDRESS=
RPC_URL=
DB_URL=
  • PORT This variable is the port you want to run the server on.
  • DB_URL This variable can be any mongoDB server URL. You can spin up a local server or get a free one from Atlas
  • COOKIE_NAME This variable should be the name of the session cookie.
  • COOKIE_KEY This variable should be a 32-byte seed encoded in hex format.
const crypto = require('crypto')
console.log(crypto.randomBytes(32).toString('hex'))
  • DID_KEY This variable should be a 32-byte seed encoded in hex format.
  • CONTRACT_ADDRESS This variable should be the address of your local network contract or the address you deployed the contract to (e.g. 0x50C6edc0d4204c8e8Af47Cc0773D3B16E8723e43 on Mumbai Testnet)
  • RPC_URL This variable should be the URL of your local node or the network RPC you want to connect to (e.g. https://rpc-mumbai.maticvigil.com for Mumbai testnet)
Clone this wiki locally