Skip to content

KM-opensource-crypto-wallet/web_wallet

Repository files navigation

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

Setup

You need to perform, following steps for different white label app to run on locally. If you not setup and by default open localhost. it will consider as "Dok Wallet" app.

Run following command on terminal for mac of setup another hosts

sudo vi /etc/hosts

It will open hosts file in vi editor in the terminal of the mac. You need to add another host dokwallet_local after the localhost.

After you edit above hosts. the file "hosts" should look like below.

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost dokwallet_local
255.255.255.255 broadcasthost
::1             localhost


How to add new white label app

You need to update hostInfo variable in "helper.js" file.
Currently We have following host

const dokWalletInfo = {
  iconFolderName: 'dokwallet',
  appName: 'DOK WALLET',
};

const pegasi51Info = {
  iconFolderName: '51pegasi',
  appName: '51PEGASI',
};

const hostInfo = {
  dokwallet_local: dokWalletInfo,
  ['www.dokwallet.app']: dokWalletInfo,
  ['www.51pegasi.ltd']: pegasi51Info,
  '51pegasi_local': pegasi51Info,
};

We have 2 apps dokwallet and 51pegasi. when we add new app add appName and add icon Folder in the assets folder similar to other one.

Crypto Provider for buy coins

Whenever we add new WL we need to add provider list for the new WL app in data.js file. Also need to update "allWhiteLabelProviderLists" variable in CryptoProviders page.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5