Table of Contents
This is a submission for StackUp's Bounty - Build Upon the Affinidi Capstone.
-
Localization based on user country (refer code here)
- update page UI based on user country
- display currency based on user country (refer code here)
-
Request more data point e.g. user profile picture to show user avatar on header if user is logged in (refer code here)
-
Use Vercel KV as session store for expressSession for affinidiProvider - this allows express backend to be run on serverless functions and prevent memory leaks (as by default express session uses
MemoryStore
, which is purposely not designed for a production environment. It will leak memory under most conditions, does not scale past a single process, and is meant for debugging and developing.)
-
Express
-
Vercel KV
-
React
-
Vercel for hosting frontend site
- Clone the repo
git clone https://github.com/teyweikiet/affinidi-capstone
- Install dependencies
npm install
- Go to api folder & install dependencies
cd api && npm install
- Start frontend locally
npm run start
- Go to api folder
cd api
- Copy and modify .env accordingly. (refer comments for appropriate values to be used)
cp .env.example .env
- Start backend locally
npm run start