SMM Panel – Installation & Setup Guide

SMM Panel – Installation & Setup Guide

📌 Requirements



Before starting the installation, make sure your server/PC has the following installed:

  • Node.js 18+ or latest LTS version

  • NPM

  • Git (optional)

  • MySQL/MariaDB (if required by the project)

  • Your SMM Panel project files

You can check Node.js and NPM versions using:

node -v
npm -v

🚀 1. Open Project Directory

Open CMD / Terminal and navigate to your SMM Panel project folder:

cd /path/to/your/project

Example:

cd C:\xampp\htdocs\smm-panel

Linux/VPS example:

cd /var/www/smm-panel

📦 2. Install Dependencies

Run the following command inside the project directory:

npm install

This will install all required Node.js packages and dependencies.

If you want to install the exact versions specified in package-lock.json, you can use:

npm ci

⚙️ 3. Configure Environment

If the project contains an environment file such as .env.example, create a .env file:

cp .env.example .env

For Windows CMD:

copy .env.example .env

Then open .env and configure your:

  • Database details

  • API keys

  • SMM provider API

  • Website URL

  • Application settings

  • Other required credentials


🗄️ 4. Database Setup

If your SMM Panel requires a database, create the required database and update the database credentials inside .env.

Example:

DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=smm_panel
DB_USERNAME=root
DB_PASSWORD=

Follow the project's database/migration instructions if available.


▶️ 5. Start Development Server

After installing dependencies, start the project using:

npm run dev

The terminal will show the local URL, usually something like:

http://localhost:3000

Open that URL in your browser.


🔨 6. Build for Production

For a production build, use:

npm run build

After the build is completed, start the production server using:

npm start
Quote

Note: The exact production command can vary depending on the framework used by the SMM Panel.


🔄 7. If You Modify the Project

After making changes to the source code, development mode normally updates automatically:

npm run dev

If you install a new package:

npm install package-name

Then restart the development server if required.


🧹 8. Fix Dependency Issues






If you encounter dependency or node_modules errors, remove the existing dependencies and reinstall them.

Windows CMD:

rmdir /s /q node_modules
del package-lock.json
npm install

Linux/VPS:

rm -rf node_modules
rm -f package-lock.json
npm install

Then start the project again:

npm run dev

🔍 9. Check Available NPM Commands

If you're unsure which commands the project supports, run:

npm run

This will display available scripts such as:

dev
build
start
preview

Quick Installation

For a basic setup, simply run:

cd /path/to/your/project
npm install
npm run dev

For production:

npm install
npm run build
npm start

⚠️ Important

Do not share your .env file publicly. It may contain:

  • Database passwords

  • API keys

  • Secret keys

  • Provider credentials

  • Other private configuration

Always keep these credentials secure.


Download Here

Post a Comment

0 Comments

Update cookies preferences