Welcome to the NexWrite - Medium-style blogging platform Localhost Installation Guide. This step-by-step tutorial helps you install and configure the script on your local machine for development and testing.

This guide is for local installations. If you are deploying on a VPS or dedicated server, please refer to the corresponding guides.

Prerequisites

Ensure your system meets the server requirements. You will need:

  • A computer running Windows, macOS, or Linux
  • Node.js (v18+ recommended)
  • MongoDB installed locally (or access to a remote MongoDB instance)
  • A modern web browser

Step 1: Prepare Your Environment

  1. Download the Script Archive
    After purchase, download the ZIP archive containing the script files from your account or email.

  2. Extract the Archive
    Unzip the archive to your desired location:

    unzip nexwrite-server-files.zip -d /path/to/medium-clone

Step 2: Install Backend Dependencies

Open a terminal, navigate to the extracted folder, and run:

cd /path/to/medium-clone
npm install

Step 3: Start the Server

  1. Launch the Application
    Start the server by running:

    npm start

    The server will run on your localhost (typically at http://localhost:3000).

  2. Verify the Server is Running
    Open your browser and navigate to:

    http://localhost:3000

    You should see your application’s homepage.

Step 4: Complete Installation via Web Wizard

Once files are installed and dependencies are set up, open your browser and go to:

http://localhost:3000/install
1

License Activation

  • Enter your license key.
  • If you don’t know it, go to https://pay.jooj.us/ and log in with your purchase email.
2

Database Configuration

  • Enter your MongoDB connection URI. You can use either:

    A. MongoDB Atlas (cloud database)

    mongodb+srv://<username>:<password>@<cluster>.mongodb.net/<database>?retryWrites=true&w=majority
    

    (Replace <username>, <password>, <cluster>, and <database> with your actual values.)

    B. Local MongoDB Installation

 mongodb://localhost:27017/your-database-name

(Replace your-database-name with your desired database name.)

  • Enter your JWT secret key by either pasting your own or clicking Generate to auto-generate one securely.
3

Create Admin

  • Set your full name, email, username, and password for the administrator account.
  • Once saved, the server will restart automatically.

Step 5: Running the Script

After installation is complete:

  1. Access Your Application
    Open your browser and navigate to:

    http://localhost:3000

    Log in using the administrator credentials you created.

For efficient development, consider installing nodemon to automatically restart the server on code changes:

npm install -g nodemon
nodemon server.js

If you encounter issues, please refer to the Troubleshooting Guide or contact support@jooj.us.