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
publicfolder. - 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
publicfolder (Apache with mod_rewrite, or Nginx) - Ability to add one cron job
- HTTPS for a live site
Documentation
| Guide | What it covers |
|---|---|
| Installation | Upload, installer, web server settings, updating |
| Scheduler | The one cron line that runs prices, orders and alerts |
| Providers and BitGo | Price feeds, payment gateways, wallets, blockchain and translation providers |
| Novex Pay API | Payment links, invoices, the merchant API and signed webhooks |
| Live and demo modes | What the NOVEX_DEMO switch changes |
Support and customisation
Questions, custom features, branding work and professional installation are available from [email protected].
. 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):
storageand everything inside itbootstrap/cachedatabase(needed for SQLite)- the project folder itself, or an empty file named
.envthat 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.
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
.envfile private.
Configuration file
All server settings live in .env. The most useful entries:
| Setting | Meaning |
|---|---|
APP_URL | Public address of the site |
APP_DEBUG | Must stay false on a live site |
DB_CONNECTION | sqlite or mysql |
MAIL_MAILER | smtp, resend or log |
NOVEX_DEMO | false for a live exchange. See Live and demo modes |
NOVEX_SUPPORT_EMAIL | Support address shown to customers |
NOVEX_APP_ANDROID | Address of your Android app download (APK or Google Play page). Shows a "Get the app" notice on the website when set |
NOVEX_APP_IOS | Address of your App Store page |
NOVEX_APP_PREVIEW | Address 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
.envfile. - Upload the new files over the old ones, keeping
.envandstorage. - Run
php artisan migrate --forceand thenphp artisan config:clear,php artisan route:clearandphp 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:
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.
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:
* * * * * cd /path/to/your/novex && php artisan schedule:run >> /dev/null 2>&1Replace /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.
| Task | How often |
|---|---|
| Market prices refresh | every minute |
| Price alerts | every minute |
| Payment link and checkout expiry | every minute |
| Order matching (limit and stop orders, margin and liquidation checks) | every 10 seconds |
| Peer-to-peer order timers | every 10 seconds |
| OTC desk quotes and timers | every 10 seconds |
| Recurring buys | every 5 minutes |
| Options expiry and settlement | every 5 minutes |
| News import | hourly |
| Futures funding | 00: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
phpis the wrong version. Runphp artisan schedule:runby 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.
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.
| Group | What it does | Providers included |
|---|---|---|
| Market data | Live prices, listings, 24h stats | Binance (no key), CoinGecko, CoinMarketCap, CoinAPI, Kaiko |
| Payment gateways | Customers fund their account with cards, bank transfer and local methods | Stripe, PayPal, Adyen, Checkout.com, Square, Mollie, Razorpay, Cashfree, Flutterwave, Paystack, MercadoPago, dLocal, PayMongo, Xendit, Tap |
| Wallets | Creates customer deposit addresses | BitGo, Fireblocks |
| Blockchain | Balances, tokens and transactions | Alchemy, QuickNode, Moralis, Tatum, Blockchair |
| Swaps and liquidity | Quotes and routes for instant swaps | Binance, Kraken, ChangeNOW, 1inch |
| Translation | Translates the interface into the languages you enable | Google, 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:
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:
testwhile you are trying things out,productionfor 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.
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:
Authorization: Bearer <api key>
Content-Type: application/jsonKeys 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
| Field | Type | Notes |
|---|---|---|
amount | number | Required. USD, greater than 0, up to 1,000,000 |
currency | string | Optional. USD |
accept | array | Optional. Assets offered, default ["USDT","BTC","ETH"] |
title | string | Optional. Shown on the checkout page |
Response 201:
{
"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}
{
"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:
{
"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.
$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;
}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.
Running a demo of your own#
One setting in .env controls whether Novex behaves like a showroom or like a real exchange:
NOVEX_DEMO=falseThe installer sets it to false. Leave it that way on a live site.
| Area | `NOVEX_DEMO=false` (live) | `NOVEX_DEMO=true` (demo) |
|---|---|---|
| Adding funds | Customers pay through a payment gateway; balances are credited after the gateway confirms | An "instant deposit" button credits test money |
| Novex Pay | Payments complete when the network confirms; new merchants wait for your approval | A simulate payment button completes checkouts; merchants are approved at once |
| Peer-to-peer | Real traders only; sellers release funds | Demo merchants answer and release automatically |
| Institutional desk | Corporate accounts wait for your review | Corporate accounts are verified at once |
| BitGo production keys | Used normally | Address creation is blocked so visitors can never receive real custody addresses |
Set NOVEX_DEMO=true, then load sample accounts and activity:
php artisan db:seed --class=DemoSeeder
php artisan p2p:seed-demoThis 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=falseand runphp artisan config:clear. - Switch the BitGo environment to
productionand add your production credentials.
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:
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:
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
flutter pub get
flutter runOn 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
| What | Where |
|---|---|
| App name on the phone | Android: android/app/src/main/AndroidManifest.xml (android:label). iPhone: ios/Runner/Info.plist (CFBundleDisplayName) |
| Name inside the app | NOVEX_APP_NAME in lib/config.dart |
| Colours | lib/core/theme.dart (the Tk.light and Tk.dark blocks) |
| App icon | Replace the images in android/app/src/main/res/mipmap-* and ios/Runner/Assets.xcassets/AppIcon.appiconset, or use the flutter_launcher_icons package |
| Package id | Change 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 |
| Font | assets/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/whitewith your own colour, for example a colour you add toandroid/app/src/main/res/values/colors.xml:
<resources>
<color name="launch_bg">#0B1020</color>
</resources><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:
<item>
<bitmap android:gravity="center" android:src="@drawable/launch_logo" />
</item>- Dark mode. The file
android/app/src/main/res/values-night/styles.xmluses the samelaunch_background, so one colour covers both. To use a different colour at night, addandroid/app/src/main/res/values-night/colors.xmlwith anotherlaunch_bgvalue. - 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:
<?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).
| Screen | File | Examples |
|---|---|---|
| Onboarding slides (three intro pages) | lib/screens/auth.dart, list slides in _OnboardingState | Title, description and icon of each slide, button labels "Next", "Get started", "I have an account" |
| Sign-in, sign-up, email code, two-factor, device unlock | lib/screens/auth.dart | "Welcome back", "Create your account", "Verify your email", "Forgot password?" |
| Home, tabs, menu | lib/screens/home.dart, lib/screens/shell.dart | Greeting, quick action names, bottom tab names |
| Markets and coin pages | lib/screens/markets.dart, lib/screens/coin.dart | Filter names, section titles |
| Buy and sell | lib/screens/trade.dart | Button labels, quote and fee wording |
| P2P | lib/screens/p2p.dart | Order steps, escrow messages |
| Wallet, send, receive, scan | lib/screens/wallet.dart, lib/screens/scan.dart | Titles and hints |
| Pay, Insights, Portfolio, Activity, Settings | lib/screens/more.dart | Titles, empty-state messages |
| Error and success messages from the server | Your website: Admin console and the language files of the Novex script | These come from your exchange, not from the app |
Example. To change the first onboarding slide, find this line in lib/screens/auth.dart:
('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:
('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
Mapper language and pick it withLocalizations.localeOf(context), or ship one build per language. - Run
flutter runafter editing to see the change, then rebuild the release file.
. Build for the stores
Android. Create your own signing key once:
keytool -genkey -v -keystore upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias uploadCreate 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:
flutter build appbundle --release --dart-define=NOVEX_API=https://exchange.yourdomain.comUpload 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:
NOVEX_APP_ANDROID=https://play.google.com/store/apps/details?id=your.package.id
NOVEX_APP_IOS=https://apps.apple.com/app/your-app/id0000000000A "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].
Getting help and customisation#
You are never on your own with a Biply script.
After you buy, tell us and we install Novex on your hosting at no extra cost.
Email [email protected] with your domain and a description or screenshot of the problem.
Need your own features, integrations or branding? Hire Biply Agency for a written quote.