This project is proprietary. You may view the code, but you are not allowed to copy, modify, or use it in any way without explicit permission.
Source for the WebApp.
A vibrant, interactive landing page for "Cublex", a new Minecraft server. Built with modern web technologies and featuring vibrant visuals, and a responsive design.
- React 18 with Hooks
- Redux Toolkit for state management
- React Router for navigation
- Framer Motion for animations
- Styled Components for styling
- React Icons for icons
- React Countdown for countdown timer
- Node.js with Express
- TypeORM with PostgreSQL
- Redis for session state
- GraphQL with Apollo Server
- JWT for authentication
- bcryptjs for password hashing
- Jest for testing
- Prettier for code formatting
- ESLint for linting
- VS Code configuration
- AWS with NGINX
- Ubuntu server
- Docker support (coming soon)
- Node.js 18+
- npm or yarn
- PostgreSQL
- Redis
-
Clone the repository
git clone <repository-url> cd cublex-server
-
Install dependencies
# Install root dependencies npm install # Install server dependencies cd server && npm install # Install client dependencies cd ../client && npm install
-
Environment Setup
Create
.env
file in the server directory:NODE_ENV=development PORT=5000 SESSION_SECRET=your-session-secret # Database DB_HOST=localhost DB_PORT=5432 DB_USER=postgres DB_PASSWORD=your-password DB_NAME=cublex # Redis REDIS_URL=redis://localhost:6379 # Client URL CLIENT_URL=http://localhost:3000
-
Database Setup
# Create PostgreSQL database createdb cublex # Start Redis server redis-server
-
Start the application
# Start both server and client (from root directory) npm start # Or start individually: npm run server # Starts backend on port 5000 npm run client # Starts frontend on port 3000
-
Access the application
- Frontend: http://localhost:3000
- Backend API: http://localhost:5000
- GraphQL: http://localhost:5000/graphql
cublex-server/
โโโ client/ # React frontend
โ โโโ public/
โ โ โโโ components/ # Reusable components
โ โ โโโ pages/ # Page components
โ โ โโโ store/ # Redux store and slices
โ โ โโโ App.js # Main app component
โ โโโ package.json
โโโ server/ # Node.js backend
โ โโโ routes/ # API routes
โ โโโ entities/ # TypeORM entities
โ โโโ middleware/ # Custom middleware
โ โโโ index.js # Server entry point
โโโ package.json
โโโ README.md
- Animated Happy Ghast with floating tentacles
- Cloud and fog animations
- Gradient text effects
- Server status display
- Call-to-action buttons
- Fixed navbar with server status
- Social media links
- User authentication dropdown
- Mobile-responsive menu
- Parallax scrolling effects
- Particle system
- Smooth transitions
- Hover effects
- Loading animations
- Admin: username:
admin
, password:password
- User: username:
player1
, password:password
- User registration and login
- Session management with Redis
- Role-based access control
- Admin panel access
- Server statistics dashboard
- Player management
- Server logs viewer
- Ban/unban functionality
- Server configuration
- Analytics and charts
- Navigate to
/admin
when logged in as admin - Full server management capabilities
- Real-time data updates
POST /api/auth/register
- User registrationPOST /api/auth/login
- User loginPOST /api/auth/logout
- User logoutGET /api/auth/status
- Check auth status
GET /api/server/status
- Server statusGET /api/server/features
- Feature listGET /api/server/community
- Community statsGET /api/server/players
- Online players
GET /api/admin/stats
- Server statisticsGET /api/admin/players
- Player managementGET /api/admin/logs
- Server logsPOST /api/admin/ban
- Ban playerPOST /api/admin/kick
- Kick player
- Discord: discord.gg/cublex
- Twitter: @CublexServer
- YouTube: youtube.com/CublexMC
- TikTok: @CublexMC
- Live Discord member count
- Social media integration
- Community statistics
- Event announcements
- Set up AWS EC2 instance with Ubuntu
- Install Node.js, PostgreSQL, Redis, and NGINX
- Configure environment variables
- Set up SSL certificates
- Deploy using PM2 or Docker
NODE_ENV=production
PORT=5000
SESSION_SECRET=your-production-secret
DB_HOST=your-db-host
DB_PASSWORD=your-db-password
REDIS_URL=your-redis-url
CLIENT_URL=https://your-domain.com
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
- Email: support@cublex.net
- Discord: discord.gg/cublex
- Website: https://www.cublex.net
Cublex - Experience the latest Minecraft features in our vibrant community! ๐ฎโจ