Skip to content

teyweikiet/affinidi-capstone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Affinidi Capstone - e Commerce Site

An ecommerce site powered by Affinidi Login!
View Demo

Table of Contents
  1. About The Project
  2. Built With
  3. Getting Started

About the project

This is a submission for StackUp's Bounty - Build Upon the Affinidi Capstone.

Upgrades Implemented

  • 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.)

    • check here for implementation of Vercel KV Store
    • check here for how it is used in affinidiProvider

logged-in screenshot

Built With

Backend

Frontend

Getting Started

Installation

  1. Clone the repo
git clone https://github.com/teyweikiet/affinidi-capstone
  1. Install dependencies
npm install
  1. Go to api folder & install dependencies
cd api && npm install

Running frontend locally

  1. Start frontend locally
npm run start

Running backend locally

  1. Go to api folder
cd api
  1. Copy and modify .env accordingly. (refer comments for appropriate values to be used)
cp .env.example .env
  1. Start backend locally
npm run start

About

An e-commerce site powered by Affinidi Login

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published