Top

Pixel AI documentation

Generate high-quality content, images, and code effortlessly with Pixel AI

Local Server Deployment

These are the steps required to set up Pixel AI application manually on any environment (Local System or Live Server).

Getting Started

Follow these steps to set up the environment on Windows.

  • MongoDB Installation
  • Node.js Installation
MongoDB Setup

1. Download & Install MongoDB Community Server

Go to: MongoDB Community Download

  • Version: Latest stable (e.g. 7.x or 8.x)
  • Platform: Windows
  • Package: MSI

During installation choose:

  • Complete setup (recommended)
  • Check Install MongoDB as a Service
  • Check Install MongoDB Compass (GUI)

2. Add MongoDB to PATH

C:\Program Files\MongoDB\Server\<version>\bin

3. Verify Installation

mongod --version
mongosh --version

4. Create Database & User

# Open mongosh
mongosh

// Switch to admin
use admin

// Create admin user
db.createUser({
  user: "admin",
  pwd: "StrongAdminPass123!",
  roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
})

// Create application database and user
use pixelai

db.createUser({
  user: "pixelai_user",
  pwd: "Your_strong_password",
  roles: [ { role: "readWrite", db: "pixelai" } ]
})
Node.js Setup

1. Download & Install Node.js (LTS)

Download from nodejs.org and choose the LTS version.

2. Verify Installation

node -v
npm -v

Successful installation will output version numbers (e.g., v22.x.x).

3. Install PM2

Essential for production to keep your app running in the background.

npm install pm2 -g
pm2 -v

Connection String: mongodb://pixelai_user:YOUR_PASSWORD@localhost:27017/pixelai

How to Run Seeding

To seed all data to the database, navigate to your backend directory and run the following command:

npm run seed
Note: Ensure your .env file is correctly configured with your MongoDB connection string before running the seed command.
Tip: After updating the .env file, make sure to rebuild and restart your application:

For Backend: pm2 restart all

What's Next?

Let's get started — your journey with Pixel AI begins here!