This is a Next.js project bootstrapped with create-next-app.
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
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.
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.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen 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.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.