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
-
Clone the repository
git clone https://github.com/ondeliveroper/on-market-landing-api.git cd on-market-landing-api -
Install dependencies
npm install -
Configure environment variables
cp .env.example .env # Edit .env with your configuration -
Set up databases
- Create PostgreSQL database
- Start MongoDB service
- Start Redis service
- Run migrations (if any)
-
Create required directories
mkdir -p resources/temp/upload mkdir -p resources/temp/review mkdir -p resources/temp/pdf -
Start the development server
npm start -
Access the API
- API Base:
http://localhost:3610 - API Documentation:
http://localhost:3610/api/kitab-suci(development mode only)
- API Base: