Website resmi NetherixMC - Minecraft Server Indonesia dengan dashboard modern dan sistem manajemen player yang powerful.
Tech Stack:
- Frontend: Vite + React
- Backend: Node.js
- Database: SQLite (default, using better-sqlite3). MySQL/MariaDB optional (requires extra configuration)
Pastikan sudah terinstall:
git clone https://github.com/NetherixMC/website.git
cd websitenpm installProject ini menggunakan SQLite (default) melalui better-sqlite3. Tidak perlu membuat database secara manual; file data.db akan dibuat otomatis saat server dijalankan.
Jika Anda ingin menggunakan MySQL/MariaDB, tambahkan dukungan dan konfigurasi di .env sesuai kebutuhan.
Buat file .env di root folder dan sesuaikan dengan konfigurasi Anda:
# Database Configuration
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=your_password
DB_NAME=netherixmc
DB_PORT=3306
# Server Configuration
PORT=3000
NODE_ENV=development
# Frontend URL (untuk CORS)
FRONTEND_URL=http://localhost:5173npm run migratenpm run devAkses frontend di: http://localhost:5173
Frontend akan auto-reload saat ada perubahan kode.
Di terminal terpisah, jalankan:
npm startAPI endpoint tersedia di: http://localhost:3000
npm run dev:all(Jika script ini tersedia di package.json)
npm run buildFile hasil build akan berada di folder dist/
Untuk melihat preview hasil build:
npm run previewwebsite/
โโโ public/ # Static assets
โโโ src/ # Source code frontend
โ โโโ components/ # React components
โ โโโ pages/ # Page components
โ โโโ assets/ # Images, fonts, etc
โ โโโ api/ # API service functions
โ โโโ utils/ # Utility functions
โ โโโ App.jsx # Main App component
โ โโโ main.jsx # Entry point
โโโ server/ # Backend code
โ โโโ routes/ # API routes
โ โโโ controllers/ # Route controllers
โ โโโ models/ # Database models
โ โโโ middleware/ # Express middleware
โ โโโ config/ # Configuration files
โ โโโ server.js # Server entry point
โโโ .env # Environment variables (jangan commit!)
โโโ .gitignore # Git ignore rules
โโโ package.json # Dependencies & scripts
โโโ vite.config.js # Vite configuration
โโโ README.md # Documentation (file ini)
| Command | Deskripsi |
|---|---|
npm install |
Install semua dependencies |
npm run dev |
Jalankan frontend development server (Vite) |
npm start |
Jalankan backend server (Node.js) |
npm run build |
Build frontend untuk production |
npm run preview |
Preview production build |
npm run lint |
Check kode dengan ESLint |
npm test |
Run tests (jika ada) |
GET /api/players- Get all playersGET /api/players/:id- Get player by IDPOST /api/players- Create new playerPUT /api/players/:id- Update playerDELETE /api/players/:id- Delete player
GET /api/stats- Get server statisticsGET /api/status- Get server status
POST /api/auth/login- LoginPOST /api/auth/register- RegisterPOST /api/auth/logout- Logout
(Sesuaikan dengan endpoint yang ada di project Anda)
- โก Fast & Modern: Dibangun dengan Vite untuk performance optimal
- ๐ฑ Responsive Design: Tampilan sempurna di semua device
- ๐ฎ Player Dashboard: Manajemen player dan statistik
- ๐ Real-time Stats: Monitor server secara real-time
- ๐ Secure Authentication: Sistem login yang aman
- ๐ Dark Mode: Support tema gelap dan terang
- ๐ SEO Optimized: Optimal untuk search engine
Jika port 5173 atau 3000 sudah digunakan:
# Ubah port di vite.config.js untuk frontend
# Ubah PORT di .env untuk backend- Pastikan MySQL/MariaDB sudah running
- Cek kredensial di file
.env - Pastikan database sudah dibuat
# Hapus node_modules dan install ulang
rm -rf node_modules
npm install# Clear cache dan build ulang
npm run clean
npm run buildKami menerima kontribusi dari komunitas! Ikuti langkah berikut:
- Fork repository ini
- Buat branch baru:
git checkout -b feature/fitur-baru - Commit changes:
git commit -m 'Menambahkan fitur baru' - Push ke branch:
git push origin feature/fitur-baru - Submit Pull Request
- Gunakan ESLint configuration yang sudah ada
- Tulis kode yang clean dan readable
- Tambahkan comment untuk logic yang kompleks
- Test fitur sebelum submit PR
Buat file .env dengan variabel berikut:
# Database
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=your_password
DB_NAME=netherixmc
DB_PORT=3306
# Server
PORT=3000
NODE_ENV=development
# Frontend
VITE_API_URL=http://localhost:3000
VITE_APP_NAME=NetherixMC
# JWT (jika menggunakan authentication)
JWT_SECRET=your_secret_key
JWT_EXPIRE=7d
# Optional: External APIs
MINECRAFT_API_KEY=your_api_key.env ke repository!
# Build terlebih dahulu
npm run build
# Deploy folder dist/ ke hosting pilihan Anda# Di server, clone repository
git clone https://github.com/NetherixMC/website.git
cd website
# Install dependencies
npm install --production
# Setup environment variables
nano .env
# Jalankan dengan PM2 (recommended)
npm install -g pm2
pm2 start server/server.js --name netherixmc
pm2 startup
pm2 save# Build dan run dengan Docker
docker-compose up -d- Discord: [Link Discord Server]
- Email: support@netherixmc.com
- Website: https://netherixmc.com
- Issues: GitHub Issues
This project is licensed under the MIT License - see the LICENSE file for details.
- Lead Developer: [Nama]
- Frontend Developer: [Nama]
- Backend Developer: [Nama]
- UI/UX Designer: [Nama]
- React Team untuk framework yang amazing
- Vite untuk build tool yang super cepat
- Node.js community
- Dan semua contributor yang telah membantu project ini
โญ Star repository ini jika Anda merasa terbantu!
Made with โค๏ธ by NetherixMC Team
Website โข Discord โข Report Bug