Welcome to the NexWrite PaaS Deployment Guide. This step-by-step tutorial will help you deploy and configure the NexWrite script on popular Platform-as-a-Service (PaaS) providers such as Render, Railway, and Heroku.

This guide assumes that your script is uploaded to a private GitHub repository. This is the recommended method to deploy on Render, Railway, and Heroku.


Prerequisites

Before proceeding, make sure you have:

  • A private GitHub repository with the NexWrite script uploaded (unzip and push it to GitHub)
  • An account on one of the supported PaaS platforms: Render, Railway, or Heroku
  • Node.js version 18 or later
  • A MongoDB database (e.g., via MongoDB Atlas)
  • Your NexWrite license key
  • Basic knowledge of working with Git and the terminal

Step 1: Upload Your Script to GitHub

  1. Unzip the NexWrite archive.
  2. Push the contents to a new private GitHub repository:
git init
git remote add origin https://github.com/your-username/your-private-repo.git
git add .
git commit -m “Initial commit for NexWrite”
git push -u origin master

Make sure your GitHub repository is private if you’re distributing commercial code.


Step 2: Connect GitHub to Your PaaS Provider

📦 Render

  1. Go to your Render dashboard.
  2. Click New +Web Service.
  3. Choose Deploy from GitHub and connect your GitHub account.
  4. Select your NexWrite private repo.
  5. Set the following values:
    • Environment: Node
    • Build Command: npm install
    • Start Command: npm start
  6. Click Advanced and add the following environment variables (optional — can also be entered during installation):
    • LICENSE_KEY
    • DOMAIN
    • MONGO_DB_URI
    • JWT_SECRET
  7. Click Create Web Service to deploy.

🚆 Railway

  1. Visit railway.app and log in.
  2. Click New ProjectDeploy from GitHub Repo.
  3. Select your NexWrite repository.
  4. Add environment variables (optional — handled during install):
    • LICENSE_KEY
    • DOMAIN
    • MONGO_DB_URI
    • JWT_SECRET
  5. Click Deploy Project.

☁️ Heroku

  1. Go to heroku.com and log in.
  2. Create a new app.
  3. Connect your GitHub account under Deploy tab.
  4. Search for your NexWrite private repo and click Connect.
  5. Scroll to Manual Deploy and click Deploy Branch.
  6. Under Settings → Config Vars, you can add:
    • LICENSE_KEY
    • DOMAIN
    • MONGO_DB_URI
    • JWT_SECRET

Heroku no longer offers a free tier. You must upgrade your account to deploy successfully.


Step 3: Wait for Build to Finish

Once your platform finishes building and starts the server:

  1. Visit your live app URL
  2. You should see the NexWrite Installation Wizard
https://your-app-domain/install

Step 4: Complete the Installation Wizard

1

License Activation

  • Enter your NexWrite license key.
  • If you’ve lost it, you can retrieve it from https://pay.jooj.us/ using your purchase email.
2

Database Configuration

  • Paste your MongoDB connection string.

    A. MongoDB Atlas (recommended):

    mongodb+srv://<user>:<pass>@<cluster>.mongodb.net/<db>?retryWrites=true&w=majority
    

    (Replace <user>, <pass>, <cluster>, and <db> with your actual values.)

    B. Self-hosted MongoDB:

    mongodb://localhost:27017/your-database
    
  • Generate or paste your JWT secret key.

3

Create Admin

  • Set admin name, email, username, and password.
  • After saving, the server will automatically restart and your admin panel will be ready.

After Deployment

Once the installation is complete, your site is live and ready.

  • Visit your site:

    https://your-app-domain
  • Log in with your administrator credentials.

Need to update the code? Push changes to GitHub and redeploy from your PaaS dashboard.


Need Help?

If you run into any issues: