Skip to main content

Quick Start Guide

Get up and running with Netasampark in 5 minutes!

Prerequisites

  • PHP 8.2+
  • MySQL 10.3+
  • Node.js 18+
  • Composer
  • Redis (optional for development)

Quick Setup

1. Backend API (2 minutes)

cd netasampark-api
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan serve

API will be available at http://localhost:8000

2. Frontend Applications (2 minutes)

Admin Panel

cd netasampark-admin
npm install
npm run dev

Access at http://localhost:5175

PWA

cd netasampark-pwa
npm install
npm run dev

Access at http://localhost:5174

3. Create Admin User (1 minute)

php artisan tinker
\App\Models\User::create([
'name' => 'Admin',
'email' => 'admin@example.com',
'password' => Hash::make('Admin123!'),
'role' => 'superadmin',
]);

First Steps

1. Login to Admin Panel

  1. Navigate to http://localhost:5175
  2. Login with your admin credentials
  3. Explore the dashboard

2. Create a Politician Account

  1. Go to PoliticiansCreate
  2. Fill in politician details
  3. Assign credits
  4. Save

3. Test API

curl -X POST http://localhost:8000/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"admin@example.com","password":"Admin123!"}'

Next Steps


Need help? Check the FAQs or Contact Support