Novex Crypto Exchange

Install and run Novex: spot, margin and futures trading, P2P escrow, wallet, payments, OTC desk, staff console and a Flutter mobile app.

Laravel · PHP 8.3About 20 minutes to install23 min read
01

Quick start#

Novex is a complete crypto exchange platform built on Laravel. It includes customer accounts with two-factor security, a ledger-based wallet, instant conversion, a spot, margin, futures and options trading terminal, peer-to-peer trading with escrow, an institutional OTC desk, a merchant payments product (Novex Pay), support tickets, market news and a full admin console. The interface is responsive and available in 22 languages.

  • Upload the files to your server and point your web root at the public folder.
  • Open your site in a browser. You are taken to the installer automatically.
  • Follow the five steps: server check, database, site details, email, administrator account.
  • Add the scheduler line shown on the last screen to your server's cron.
  • Sign in and open Admin console → Integrations to connect your price feed, payment gateways and wallet provider.

Requirements

  • PHP 8.3 or newer with the extensions bcmath, ctype, curl, fileinfo, gmp, json, mbstring, openssl, pdo, tokenizer and xml
  • SQLite (included with PHP) or MySQL 8 / MariaDB 10.6 or newer
  • A web server that serves the public folder (Apache with mod_rewrite, or Nginx)
  • Ability to add one cron job
  • HTTPS for a live site

Documentation

GuideWhat it covers
InstallationUpload, installer, web server settings, updating
SchedulerThe one cron line that runs prices, orders and alerts
Providers and BitGoPrice feeds, payment gateways, wallets, blockchain and translation providers
Novex Pay APIPayment links, invoices, the merchant API and signed webhooks
Live and demo modesWhat the NOVEX_DEMO switch changes

Support and customisation

Questions, custom features, branding work and professional installation are available from [email protected].

02

. Upload#

Upload the contents of the package to your hosting account and make your domain's web root point at the public folder. Keep every other folder (app, config, storage and so on) outside the public web root where your host allows it.

Give the web server write access to these folders (permission 775):

  • storage and everything inside it
  • bootstrap/cache
  • database (needed for SQLite)
  • the project folder itself, or an empty file named .env that the web server can write to

. Run the installer

Open your site in a browser. Until setup is finished every address leads to the installer.

  • Server check. Every line should show a tick. Each cross explains how to fix it.
  • Database. Choose SQLite for a quick start, or MySQL/MariaDB for a busy exchange. For MySQL, create an empty database and a user in your hosting panel first, then enter the details and press Test database connection.
  • Your site. Exchange name, the public address of the site and the support email shown to customers.
  • Email. Enter your SMTP details or a Resend API key. Customers receive sign-up codes, receipts and security alerts by email, so a working mail service is needed before you open for business. A test message is sent to your administrator address when setup finishes.
  • Administrator account. Your name, email and a strong password. You sign in with these details.

Press Install Novex. The installer creates the database tables, the default asset list and languages, and your administrator account. No sample customers or sample activity are created. When it finishes, the installer locks itself and its address returns "not found".

. Web server settings

Apache. The public/.htaccess file is included. Enable mod_rewrite and allow overrides (AllowOverride All).

Nginx.

BASH
server {
    server_name exchange.example.com;
    root /var/www/novex/public;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    }
    location ~ /\.(?!well-known) { deny all; }

    # Speed: compress text and cache versioned assets for a year.
    gzip on;
    gzip_types text/css application/javascript application/json image/svg+xml;
    location ~* \.(css|js|woff2)$ {
        expires 1y;
        add_header Cache-Control "public, immutable";
        try_files $uri =404;
    }
    location ~* \.(svg|png|jpe?g|webp|ico)$ {
        expires 30d;
        try_files $uri =404;
    }
    location = /sw.js { add_header Cache-Control "no-cache"; }
}

Asset addresses carry a version number that changes whenever a file changes, so long caching is safe for styles, scripts and fonts. Fonts are served from your own site, so no outside font service is contacted.

. After installation

  • Add the cron line from the final screen. See Scheduler.
  • Sign in and open Admin console → Integrations to connect providers. See Providers.
  • Use Page editor to set your headlines and Fees to review revenue settings.
  • Serve the site over HTTPS and keep the .env file private.

Configuration file

All server settings live in .env. The most useful entries:

SettingMeaning
APP_URLPublic address of the site
APP_DEBUGMust stay false on a live site
DB_CONNECTIONsqlite or mysql
MAIL_MAILERsmtp, resend or log
NOVEX_DEMOfalse for a live exchange. See Live and demo modes
NOVEX_SUPPORT_EMAILSupport address shown to customers
NOVEX_APP_ANDROIDAddress of your Android app download (APK or Google Play page). Shows a "Get the app" notice on the website when set
NOVEX_APP_IOSAddress of your App Store page
NOVEX_APP_PREVIEWAddress of a browser version of the app (optional)

After editing .env on a server that caches its configuration, run php artisan config:clear.

Updating

  • Back up your database and the .env file.
  • Upload the new files over the old ones, keeping .env and storage.
  • Run php artisan migrate --force and then php artisan config:clear, php artisan route:clear and php artisan view:clear.

Installing from the command line

If you prefer SSH, create the .env file from .env.example, set the database values, then run php artisan key:generate, php artisan migrate --force and php artisan db:seed --force. Then create your administrator account:

BASH
php artisan novex:admin [email protected] --name="Your Name"

The same command resets the password of an administrator who is locked out, and promotes an existing customer account to administrator.

03

What it runs#

Novex runs its background work from one scheduled task. Add this line to your server's cron so it runs every minute:

BASH
* * * * * cd /path/to/your/novex && php artisan schedule:run >> /dev/null 2>&1

Replace /path/to/your/novex with the folder that contains the artisan file. The installer shows the exact line for your server on its final screen. In cPanel, open Cron Jobs, choose "Once Per Minute" and paste the command. If php is not found, use the full path to PHP 8.3 shown by your host, for example /usr/local/bin/ea-php83.

TaskHow often
Market prices refreshevery minute
Price alertsevery minute
Payment link and checkout expiryevery minute
Order matching (limit and stop orders, margin and liquidation checks)every 10 seconds
Peer-to-peer order timersevery 10 seconds
OTC desk quotes and timersevery 10 seconds
Recurring buysevery 5 minutes
Options expiry and settlementevery 5 minutes
News importhourly
Futures funding00:00, 08:00 and 16:00

The ten-second tasks run inside the minute-by-minute cron call, so one cron line is all you need.

Troubleshooting

  • Prices never change, orders stay open. The cron line is missing or php is the wrong version. Run php artisan schedule:run by hand from the project folder and read any error it prints.
  • Time zone. Schedules use the time zone in config/app.php (UTC by default).
  • Logs. Errors are written to storage/logs.
04

Payment gateways#

Novex does not depend on one vendor. Every outside service is a provider you switch on in Admin console → Integrations. Keys are stored encrypted. Providers in the same group are tried in the order you choose, so you can add a backup.

GroupWhat it doesProviders included
Market dataLive prices, listings, 24h statsBinance (no key), CoinGecko, CoinMarketCap, CoinAPI, Kaiko
Payment gatewaysCustomers fund their account with cards, bank transfer and local methodsStripe, PayPal, Adyen, Checkout.com, Square, Mollie, Razorpay, Cashfree, Flutterwave, Paystack, MercadoPago, dLocal, PayMongo, Xendit, Tap
WalletsCreates customer deposit addressesBitGo, Fireblocks
BlockchainBalances, tokens and transactionsAlchemy, QuickNode, Moralis, Tatum, Blockchair
Swaps and liquidityQuotes and routes for instant swapsBinance, Kraken, ChangeNOW, 1inch
TranslationTranslates the interface into the languages you enableGoogle, DeepL, LibreTranslate

Open a provider, enter its credentials, switch it on and press Save. Use the up and down controls to set the order within a group.

Each gateway sends a webhook to Novex when a payment completes. Copy the webhook address shown on the gateway's card in Integrations into the gateway's dashboard:

BASH
https://your-domain.com/webhooks/<gateway>

Funds are credited to the customer's balance only after the gateway confirms the payment through its signed webhook.

BitGo wallets

BitGo provides custody and deposit addresses for your customers.

  • Create a BitGo account and an enterprise. Note your Enterprise ID.
  • Create an access token with permission to create wallets and addresses.
  • Open Integrations → Wallets → BitGo and enter:
  • Access token
  • Enterprise ID
  • Wallet passphrase (used when new wallets are created)
  • Environment: test while you are trying things out, production for real funds
  • Express URL, only if you run your own BitGo Express server
  • Switch BitGo on and save.

Customers then receive their own deposit address for each supported network. Keep the wallet passphrase somewhere safe outside the server: it cannot be recovered.

Fireblocks

Open Integrations → Wallets → Fireblocks and enter the environment (sandbox or production), your API key, the API private key (PEM) and the vault account ID. Switch it on and save.

Translation

Add a translation provider key, then enable languages in Admin console → Languages. Each text is translated once and stored, so cost stays low and pages stay fast.

05

Merchant API#

Novex Pay lets merchants on your exchange accept crypto from their own customers. Merchants open Pay in their dashboard to create payment links and invoices, manage API keys and set a webhook address. Customers pay on a hosted checkout page at /pay/<link> that works on phones and shows the amount, a locked exchange rate and a countdown.

Accepted assets: USDT, USDC, BTC, ETH and SOL. Amounts are set in USD.

New merchant accounts are reviewed by your team in Admin console → Merchants before they go live.

Send requests to https://your-domain.com/api/v1 with the merchant's secret key:

BASH
Authorization: Bearer <api key>
Content-Type: application/json

Keys are created in the merchant's Pay dashboard. A key can be read-only or read and write, and can be revoked at any time. A missing or revoked key returns 401.

Create a payment

POST /api/v1/merchant/payments

FieldTypeNotes
amountnumberRequired. USD, greater than 0, up to 1,000,000
currencystringOptional. USD
acceptarrayOptional. Assets offered, default ["USDT","BTC","ETH"]
titlestringOptional. Shown on the checkout page

Response 201:

BASH
{
  "id": "api-x3k9d2m1q8vz7a",
  "amount": "49.00",
  "currency": "USD",
  "accept": ["USDT", "BTC", "ETH"],
  "url": "https://your-domain.com/pay/api-x3k9d2m1q8vz7a"
}

Send your customer to url.

Check a payment

GET /api/v1/merchant/payments/{id}

BASH
{
  "id": "api-x3k9d2m1q8vz7a",
  "status": "paid",
  "amount": 49,
  "paid_at": "2026-11-23T14:02:11+00:00",
  "asset": "USDT"
}

status is open until a payment is confirmed, then paid.

Rate limits: 120 create requests and 300 read requests per minute per address.

Webhooks

Set a webhook address and the events you want in the Pay dashboard. Novex sends a POST with a JSON body:

BASH
{
  "id": "evt_Qm8d2LxPz4TnA1",
  "type": "payment.paid",
  "created": 1795442531,
  "data": {
    "ref": "PAY-8K2D9F",
    "asset": "USDT",
    "amount_usd": "49.00",
    "amount_crypto": "49",
    "invoice": null
  }
}

Events: payment.paid, and payment.test (sent by the Send test button).

Verify the signature

Every request carries an X-Novex-Signature header: sha256= followed by the HMAC-SHA256 of the raw request body, using your webhook secret (shown in the Pay dashboard). Always verify it before trusting the data.

BASH
$body = file_get_contents('php://input');
$expected = 'sha256='.hash_hmac('sha256', $body, $webhookSecret);
if (! hash_equals($expected, $_SERVER['HTTP_X_NOVEX_SIGNATURE'] ?? '')) {
    http_response_code(400);
    exit;
}
BASH
const crypto = require('crypto');
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-novex-signature'] || ''));

Respond with any 2xx status within 5 seconds. Delivery results (status code and response time) are listed in the merchant's Pay dashboard. Webhook addresses must be public http(s) URLs; private network addresses are refused.

Invoices

Merchants can create invoices with line items and a due date. Each invoice has its own hosted payment page at /pay/invoice/<key>, and the customer receives it by email.

06

Running a demo of your own#

One setting in .env controls whether Novex behaves like a showroom or like a real exchange:

BASH
NOVEX_DEMO=false

The installer sets it to false. Leave it that way on a live site.

Area`NOVEX_DEMO=false` (live)`NOVEX_DEMO=true` (demo)
Adding fundsCustomers pay through a payment gateway; balances are credited after the gateway confirmsAn "instant deposit" button credits test money
Novex PayPayments complete when the network confirms; new merchants wait for your approvalA simulate payment button completes checkouts; merchants are approved at once
Peer-to-peerReal traders only; sellers release fundsDemo merchants answer and release automatically
Institutional deskCorporate accounts wait for your reviewCorporate accounts are verified at once
BitGo production keysUsed normallyAddress creation is blocked so visitors can never receive real custody addresses

Set NOVEX_DEMO=true, then load sample accounts and activity:

BASH
php artisan db:seed --class=DemoSeeder
php artisan p2p:seed-demo

This creates a sample administrator ([email protected]) and customer ([email protected]), both with the password Demo@2026!, plus sample orders and merchants. Use a separate site and database for demos and use BitGo test credentials there. Never run these commands on a live exchange.

Going from demo to live

  • Use a fresh database and the installer, so no sample accounts are carried over.
  • Set NOVEX_DEMO=false and run php artisan config:clear.
  • Switch the BitGo environment to production and add your production credentials.
07

What is inside#

A native app for your Novex exchange, built with Flutter. Customers sign in with their existing account and can trade, use P2P with escrow, manage their wallet, pay by QR and read market insights, all from their phone. One code base builds the Android and iPhone apps.

  • Onboarding, email and password sign-in, two-factor sign-in, sign-up with email code, and an optional fingerprint / face unlock
  • Home with live balance, quick actions, watchlist and shortcuts
  • Markets with search, filters, live prices and price charts
  • Buy and sell with a keypad, a clear quote, fees and a confirmation step
  • P2P marketplace with escrow orders, payment timer, chat and appeals
  • Wallet: balances, receive addresses with QR code, send crypto, scan payment QR codes
  • Pay: your payment link as a QR code and recent payments
  • Insights (market sentiment and news), Portfolio, Activity
  • Light and dark themes, pull-to-refresh, secure token storage

Requirements

  • Your Novex website, version 1.0 or newer, running over HTTPS. The app talks to it through /api/m1, which is already part of the Novex script.
  • Flutter 3.41 or newer (flutter.dev)
  • Android Studio for Android builds. A Mac with Xcode for iPhone builds.

. Point the app at your exchange

Open lib/config.dart and set your website address:

BASH
static const String site = String.fromEnvironment('NOVEX_API', defaultValue: 'https://exchange.example.com');
static const String appName = String.fromEnvironment('NOVEX_APP_NAME', defaultValue: 'Novex');

You can also leave the file alone and pass the values when you build:

BASH
flutter build apk --release --dart-define=NOVEX_API=https://exchange.yourdomain.com --dart-define=NOVEX_APP_NAME="Your Exchange"

Use the address of your website without a trailing slash and without /api.

. Run it

BASH
flutter pub get
flutter run

On the Android emulator your computer is reachable at http://10.0.2.2:PORT. Plain http addresses only work in debug builds. Release builds need HTTPS.

. Make it yours

WhatWhere
App name on the phoneAndroid: android/app/src/main/AndroidManifest.xml (android:label). iPhone: ios/Runner/Info.plist (CFBundleDisplayName)
Name inside the appNOVEX_APP_NAME in lib/config.dart
Colourslib/core/theme.dart (the Tk.light and Tk.dark blocks)
App iconReplace the images in android/app/src/main/res/mipmap-* and ios/Runner/Assets.xcassets/AppIcon.appiconset, or use the flutter_launcher_icons package
Package idChange org.biply.novex_app to your own id in android/app/build.gradle.kts (namespace and applicationId), move MainActivity.kt to the matching folder and change its first line. On iPhone change the Bundle Identifier in Xcode
Fontassets/fonts and pubspec.yaml

. Change the Android launch screen

A customer sees two screens while the app opens. First a plain Android screen (a few frames), then the Novex splash inside the app (logo and name).

Android launch screen (before the app loads). Edit android/app/src/main/res/drawable/launch_background.xml and android/app/src/main/res/drawable-v21/launch_background.xml.

  • Change the background colour. Replace @android:color/white with your own colour, for example a colour you add to android/app/src/main/res/values/colors.xml:
BASH
<resources>
    <color name="launch_bg">#0B1020</color>
</resources>
BASH
<item android:drawable="@color/launch_bg" />
  • Show your logo. Save a transparent PNG (about 288 x 288 px) as android/app/src/main/res/drawable/launch_logo.png, then remove the comment marks around the bitmap block and point it at your file:
BASH
<item>
    <bitmap android:gravity="center" android:src="@drawable/launch_logo" />
</item>
  • Dark mode. The file android/app/src/main/res/values-night/styles.xml uses the same launch_background, so one colour covers both. To use a different colour at night, add android/app/src/main/res/values-night/colors.xml with another launch_bg value.
  • Android 12 and newer show the system splash made from your app icon. To set its colour and icon, create android/app/src/main/res/values-v31/styles.xml:
BASH
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowSplashScreenBackground">@color/launch_bg</item>
        <item name="android:windowSplashScreenAnimatedIcon">@drawable/launch_logo</item>
    </style>
    <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowBackground">?android:colorBackground</item>
    </style>
</resources>

Splash inside the app (logo and name). Open lib/screens/auth.dart and find SplashScreen. It shows the logo (_Logo) and the app name from NOVEX_APP_NAME. To use your own image, add it to assets/ (for example assets/logo.png), list it under flutter: assets: in pubspec.yaml, and replace const _Logo(size: 84) with Image.asset('assets/logo.png', width: 84). The same _Logo is used on the sign-in screen, so replace it there as well if you want your image everywhere.

iPhone launch screen. Open ios/Runner.xcworkspace in Xcode, open ios/Runner/Base.lproj/LaunchScreen.storyboard, and change the background colour and image. The launch image files are in ios/Runner/Assets.xcassets/LaunchImage.imageset.

After any change, stop the app and run it again (a hot reload does not refresh the launch screen).

. Change the text shown in the app

All the words in the app are plain text in the Dart files under lib/. Open a file, find the text in quotes, change it and save. There is no separate language file. Search your editor for the exact words you see on screen (Android Studio: Ctrl+Shift+F, Visual Studio Code: Ctrl+Shift+F).

ScreenFileExamples
Onboarding slides (three intro pages)lib/screens/auth.dart, list slides in _OnboardingStateTitle, description and icon of each slide, button labels "Next", "Get started", "I have an account"
Sign-in, sign-up, email code, two-factor, device unlocklib/screens/auth.dart"Welcome back", "Create your account", "Verify your email", "Forgot password?"
Home, tabs, menulib/screens/home.dart, lib/screens/shell.dartGreeting, quick action names, bottom tab names
Markets and coin pageslib/screens/markets.dart, lib/screens/coin.dartFilter names, section titles
Buy and selllib/screens/trade.dartButton labels, quote and fee wording
P2Plib/screens/p2p.dartOrder steps, escrow messages
Wallet, send, receive, scanlib/screens/wallet.dart, lib/screens/scan.dartTitles and hints
Pay, Insights, Portfolio, Activity, Settingslib/screens/more.dartTitles, empty-state messages
Error and success messages from the serverYour website: Admin console and the language files of the Novex scriptThese come from your exchange, not from the app

Example. To change the first onboarding slide, find this line in lib/screens/auth.dart:

BASH
('One account for everything', 'Trade, pay and hold digital assets with the tools of a pro desk.', Icons.candlestick_chart_rounded),

and replace the two texts:

BASH
('Your money, your rules', 'Buy, sell and send crypto in seconds.', Icons.candlestick_chart_rounded),

Tips:

  • Keep the quotes and commas as they are. A text with an apostrophe needs a backslash: 'Don't miss out'.
  • Where you see ${Config.appName} the app name is inserted for you. Keep it, or replace it with plain text.
  • To add another language, copy the text you want to translate into a Dart Map per language and pick it with Localizations.localeOf(context), or ship one build per language.
  • Run flutter run after editing to see the change, then rebuild the release file.

. Build for the stores

Android. Create your own signing key once:

BASH
keytool -genkey -v -keystore upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload

Create android/key.properties with storePassword, keyPassword, keyAlias and storeFile, and reference it from android/app/build.gradle.kts as described in the Flutter guide "Build and release an Android app". Then:

BASH
flutter build appbundle --release --dart-define=NOVEX_API=https://exchange.yourdomain.com

Upload build/app/outputs/bundle/release/app-release.aab to the Google Play Console. For a file you can install directly, use flutter build apk --release.

iPhone. On a Mac open ios/Runner.xcworkspace in Xcode, set your team and bundle identifier, then choose Product > Archive and upload to App Store Connect.

Tell your customers about the app

Once your app is published, add its addresses to the .env file of your website and run php artisan config:clear:

BASH
NOVEX_APP_ANDROID=https://play.google.com/store/apps/details?id=your.package.id
NOVEX_APP_IOS=https://apps.apple.com/app/your-app/id0000000000

A "Get the app" notice then appears on your website and dashboard. Visitors can dismiss it.

Try it in a browser

flutter build web --release --dart-define=NOVEX_API=https://exchange.yourdomain.com creates a browser version in build/web. Upload it to a folder on your site (for example /app/) and add --base-href /app/ to the command. Set NOVEX_APP_PREVIEW to that address to offer it as "Try in browser".

Store review tips

  • Add a privacy policy page to your website and link it in both store listings. The app uses the camera only to scan payment QR codes and biometrics only to unlock the app on the device.
  • Financial apps are reviewed closely. Show your licence or registration details on your website, and give the reviewers a test account.
  • Keep the in-app wording in line with your listing. Do not promise returns.

How sign-in works

The app signs in with your customers' normal email and password and receives a private access token that is stored in the phone's secure storage. Tokens last 90 days and can be revoked by signing out. Two-factor codes, email verification, account freezing and every limit set in your admin console apply to the app exactly as they do on the website.

Support and customisation

Need custom features, store publishing help or a white-label build? Write to [email protected].

08

Getting help and customisation#

You are never on your own with a Biply script.

Free installation

After you buy, tell us and we install Novex on your hosting at no extra cost.

Professional support

Email [email protected] with your domain and a description or screenshot of the problem.

Customisation

Need your own features, integrations or branding? Hire Biply Agency for a written quote.