📚 Documentation / en / Explore / API_Setup

🧩 API Setup Guide

To configure the API, follow these steps:

  1. Install Dependencies
    Use the command below to install required packages:

    npm install express body-parser cors
    
  2. Configure Environment Variables
    Set your API key and database URL in .env:

    API_KEY=your_key_here
    DATABASE_URL=mongodb://localhost:27017/api_db
    
  3. Initialize Server
    Run the setup script:

    node setup.js
    

    ✅ This will start the server on http://localhost:3000.

🔗 For detailed API endpoints, check out our API Reference.

API_Setup
📌 *Image: API Setup flowchart*