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
2. Use the Correct Node.js Version
If you're using nvm:
This will automatically switch to Node.js v22 as specified in the .nvmrc file.
3. Install pnpm
If you don't have pnpm installed:
Or using corepack (recommended):
4. Install Dependencies
This will install all required dependencies listed in package.json.
Verify Installation
To verify that everything is installed correctly, run:
You should see: - pnpm version 10.7.1 or higher - Node.js version 22.x.x
Next Steps
After installation, proceed to:
- Configuration - Set up your environment
- Environment Variables - Configure required variables
- Running the App - Start the development server