Skip to main content

Getting started

Prerequisites

  • Node.js: v14.x or higher (LTS recommended)
  • npm: v6.x or higher (comes with Node.js)
  • PostgreSQL: v12.x or higher
  • MongoDB: v4.x or higher
  • Redis: v6.x or higher
  • Minio (optional): For S3-compatible object storage

Installation Steps

  1. Clone the repository

    git clone https://github.com/ondeliveroper/on-market-landing-api.git
    cd on-market-landing-api
    
  2. Install dependencies

    npm install
    
  3. Configure environment variables

    cp .env.example .env
    # Edit .env with your configuration
    
  4. Set up databases

    • Create PostgreSQL database
    • Start MongoDB service
    • Start Redis service
    • Run migrations (if any)
  5. Create required directories

    mkdir -p resources/temp/upload
    mkdir -p resources/temp/review
    mkdir -p resources/temp/pdf
    
  6. Start the development server

    npm start
    
  7. Access the API

    • API Base: http://localhost:3610
    • API Documentation: http://localhost:3610/api/kitab-suci (development mode only)