This guide will help you set up the development environment for SimplePanel-CS2.
- Node.js (v20.9.0 or higher)
- pnpm (or npm/yarn)
- Git
- MySQL/MariaDB database
- Access to your CS2 server's SimpleAdmin database
-
Clone the repository:
git clone https://github.com/wiruwiru/SimplePanel-CS2.git cd SimplePanel-CS2 -
Install dependencies:
pnpm install
Or using npm:
npm install
-
Configure environment variables: Create a
.envfile in the root directory with your database and Steam authentication settings.You need to generate a secure random string for the
SESSION_SECRETenvironment variable. Use one of the following methods: Windows (Node.js):node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"Linux/Mac:
openssl rand -base64 32
To get your Steam API key:
- Visit https://steamcommunity.com/dev/apikey
- Log in with your Steam account
- Register a new API key by providing a domain name.
- Copy the generated API key and add it to your
.envfile asSTEAM_API_KEY
-
Set up the database: The database tables will be automatically created on first startup if your database credentials are configured correctly. Alternatively, you can manually run the SQL script located in
scripts/create-tables.sqlon your database. -
Run the development server:
pnpm dev
Or using npm:
npm run dev
The application will be available at
http://localhost:3000
To build the application for production:
pnpm buildOr using npm:
npm run buildThe built files will be in the build directory.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please follow the Conventional Commits specification for commit messages.
This project is licensed under a Modified MIT License with Commercial and Attribution Restrictions.
- By contributing to this project, you agree that your contributions will be licensed under the same license
- Commercial use is prohibited without explicit permission from the author
- Attribution is mandatory - all distributions must maintain visible credits to WiruWiru
- Modified versions must clearly acknowledge the original author
For full license details, see LICENSE file.
To obtain a commercial license or use this software for commercial purposes, please contact the author at: https://github.com/wiruwiru