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
- Navigate to
http://localhost:5175 - Login with your admin credentials
- Explore the dashboard
2. Create a Politician Account
- Go to Politicians → Create
- Fill in politician details
- Assign credits
- 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