Skip to main content

Welcome to Cognit Backend

Cognit Backend is a robust REST API built with Express.js, TypeScript, and PostgreSQL, designed to power educational gaming platforms that promote positive interactions and environmental knowledge.

Key Features

Authentication & Authorization

Complete user authentication system with JWT tokens, email verification, password reset, and secure session management

Gamification System

Points-based reward system with user progression tracking, game completion rewards, and leaderboard capabilities

Games Management

Comprehensive API for managing educational games, categories, and user progress with full CRUD operations

Security & Rate Limiting

Built-in security with Helmet.js, CORS configuration, rate limiting (5 requests/minute), and input validation

Technology Stack

Cognit Backend leverages modern technologies to ensure reliability and performance:
  • Express.js - Fast, unopinionated web framework
  • TypeScript - Type-safe development experience
  • PostgreSQL - Robust relational database
  • Sequelize-TypeScript - Type-safe ORM with decorators
  • JWT - Secure token-based authentication
  • Bcrypt - Password hashing and encryption
  • Express Validator - Request validation middleware
  • Nodemailer - Email delivery for account verification

Quickstart

Get up and running in minutes

API Reference

Explore all available endpoints

Guides

Learn best practices and patterns

API Overview

The Cognit Backend API is organized around REST principles and returns JSON responses. The API supports:
  • Authentication endpoints (/api/auth/*) - User registration, login, password management
  • Games endpoints (/api/games/*) - Game data retrieval and management
  • User management - Profile updates, points tracking, and user queries

Getting Help

If you need assistance or have questions:
The API includes rate limiting of 5 requests per minute on authentication endpoints to prevent abuse. Plan your integration accordingly.

Build docs developers (and LLMs) love