Skip to content

Deploy Console (User Dashboard)

The Console (netproxy-console-v2) is the dashboard for your end users. This is where they register, purchase proxies, manage subscriptions, top up their balance, and view history.

InformationDetails
Repositorygithub.com/lebachhiep/netproxy-console-v2
StackReact 19.2, Vite 6.2, TypeScript 5.8, Tailwind CSS 4.0, SCSS
Languages14 languages (i18next)
Dev port5192
Terminal window
git clone https://github.com/lebachhiep/netproxy-console-v2.git
cd netproxy-console-v2
Terminal window
# Using Yarn (recommended)
yarn install
# Or npm
npm install

Copy the .env.example file to .env:

Terminal window
cp .env.example .env

Contents of the .env file:

VITE_API_BASE_URL=https://api.prx.network
VITE_RECAPTCHA_SITE_KEY=your_recaptcha_site_key
VariableDescription
VITE_API_BASE_URLAPI Backend URL. Default: https://api.prx.network
VITE_RECAPTCHA_SITE_KEYGoogle reCAPTCHA v3 site key used for registration/login forms
Terminal window
yarn dev

Visit http://localhost:5192 to see the result.

Replace the src/logo.svg file with your own logo.

Edit the tailwind.config.js file to change the color palette to match your brand.

Edit the JSON files in public/locales/[language_code]/:

public/locales/
├── en/ # English
├── vi/ # Vietnamese
├── zh/ # Chinese
├── ja/ # Japanese
├── ko/ # Korean
├── ru/ # Russian
├── de/ # German
├── fr/ # French
├── es/ # Spanish
├── pt/ # Portuguese
├── th/ # Thai
├── id/ # Indonesian
├── ar/ # Arabic
└── hi/ # Hindi
  1. Push the source code to your GitHub repository

  2. Go to vercel.com and import the repository

  3. Configure the project:

    • Framework Preset: Vite
    • Build Command: yarn build
    • Output Directory: dist
  4. Add environment variables:

    • VITE_API_BASE_URL = https://api.prx.network
    • VITE_RECAPTCHA_SITE_KEY = your_recaptcha_site_key
  5. Click Deploy

  6. After deployment, configure a custom domain in the Vercel dashboard

  1. Go to Cloudflare Pages Dashboard
  2. Click Create a projectConnect to Git
  3. Select the netproxy-console-v2 repository
  4. Configure:
    • Build Command: yarn build
    • Build Output Directory: dist
  5. Add environment variables as with Vercel
  6. Click Save and Deploy
Terminal window
# Build the project
yarn build
# Deploy
npx wrangler pages deploy dist --project-name=my-proxy-console

The Console is a Single Page Application (SPA), so you need to configure redirects so that all routes point to index.html.

Vercel — Create a vercel.json file in the root directory:

{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}

Cloudflare Pages — Create a public/_redirects file:

/* /index.html 200

After deploying, verify the following:

  1. Visit the Console domain → you should see the login/registration page
  2. Register a new account → succeeds
  3. Log in → you should see the dashboard
  4. Logo and branding display correctly (after configuring on Seller Portal)