Backend API & Database Setup Guide

Step-by-step instructions for configuring the Node.js backend environment and MongoDB database connections.

1. Prerequisites

2. Configuring the Server Environment

The backend requires specific environment variables to connect to the database and secure the API.

Essential Variables

# Database Connection String MONGODB_URI="mongodb+srv://<username>:<password>@cluster0.mongodb.net/vibematch" # API Security Key (MUST BE CHANGED) JWT_SECRET="your_secure_random_string_here" # Server Port PORT=3000

Important Security Note: The application will refuse to start if JWT_SECRET is not set. You must provide a secure, unique string to prevent unauthorized token forgery.

3. Database Connection & Initialization

Once your .env file is configured with the correct MONGODB_URI, you need to install dependencies and start the server.

If the connection is successful, you will see a message in the terminal: Connected to MongoDB successfully!

4. Finalize Installation via Web Wizard

Once your server is running, the application provides an automated web-based installation wizard to set up your administrator account and verify your purchase.

After completing the wizard, your platform is fully installed and secured!