DocsGetting StartedQuick Start

Quick Start

Get up and running with CS-Arena locally in just a few steps.

Prerequisites

Before you begin, make sure you have the following installed:

ToolVersion
Node.js18.0 or higher
npm or pnpmLatest
GitAny recent version

1. Clone the Repository

git clone https://github.com/Ali-Haggag7/CS-Arena.git
cd CS-Arena

2. Install Dependencies

npm install

3. Set Up Environment Variables

Create a .env.local file in the root directory:

cp .env.example .env.local

Then fill in the required values:

# Sanity CMS
NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id
NEXT_PUBLIC_SANITY_DATASET=production
SANITY_API_TOKEN=your_token

# Auth
NEXTAUTH_SECRET=your_secret
GITHUB_CLIENT_ID=your_github_id
GITHUB_CLIENT_SECRET=your_github_secret
GOOGLE_CLIENT_ID=your_google_id
GOOGLE_CLIENT_SECRET=your_google_secret

4. Run the Development Server

npm run dev

Open http://localhost:3000 in your browser. You should see CS-Arena running locally!

Was this page helpful?
Edit this page on GitHub
Last updated: 3/20/2026