Skip to content

KritapasSuwannawin/LangEdge-Backend

Repository files navigation

LangEdge Backend

A backend service for the AI-powered language learning and translation platform.

Overview

LangEdge Backend provides the API services and server-side logic that powers the LangEdge language learning and translation platform. It handles user authentication, translation requests, data persistence, and communication with external AI services.

Features

  • RESTful API: Well-structured endpoints for frontend communication
  • AI Integration: Connects to language model services for translation and NLP features
  • Authentication: Secure user authentication and authorization
  • Database Operations: Efficient data storage and retrieval
  • Error Handling: Robust error management and logging
  • Containerization: Docker support for easy deployment

Links

Tech Stack

  • Runtime: Node.js
  • Framework: NestJS with TypeScript
  • Authentication: Firebase
  • Database: PostgreSQL, TypeORM
  • Testing: Jest
  • Containerization: Docker

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Set up environment variables
OPENAI_API_KEY="sk-..."
DATABASE_CONNECTION_STRING="postgresql://..."
FIREBASE_API_KEY="..."
FIREBASE_SERVICE_ACCOUNT={...}
  1. Start the development server:
npm run start:dev

Building for Production

Build the Docker image:

OPENAI_API_KEY="sk-..." sh ./build.sh

Run the Docker container:

sh ./run.sh ${PORT}

Copyright

© 2025 Kritapas Suwannawin. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages