Skip to content

Installation

This guide will help you set up the 2KRIKA backend service on your local development environment.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js v22 - Download
  • pnpm - Package manager
  • nvm (recommended) - Node Version Manager
  • Git - Version control
  • PostgreSQL or SQLite - SQL database
  • MongoDB (optional) - NoSQL database for chat messages
  • Redis - Caching layer

Installation Steps

1. Clone the Repository

git clone git@github.com:OryStack/2-krika-backend.git
cd 2-krika-backend

2. Use the Correct Node.js Version

If you're using nvm:

nvm use

This will automatically switch to Node.js v22 as specified in the .nvmrc file.

3. Install pnpm

If you don't have pnpm installed:

npm install -g pnpm

Or using corepack (recommended):

corepack enable pnpm

4. Install Dependencies

pnpm install

This will install all required dependencies listed in package.json.

Verify Installation

To verify that everything is installed correctly, run:

pnpm --version
node --version

You should see: - pnpm version 10.7.1 or higher - Node.js version 22.x.x

Next Steps

After installation, proceed to: