Skip to content

Arman2409/vector-flow-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vector Flow API

Project Setup Guide

This guide outlines the steps to set up and run the project locally.

Prerequisites

Ensure you have the following installed:

  • Node.js (optional, for compatibility): v18 or higher.
  • Git: For cloning the repository.

Setup Instructions

  1. Cloen the repo: Run in the terminal:
git clone https://github.com/Arman2409/vector-flow-api
  1. Install dependencies: Run in the terminal:
npm install --legacy-peer-deps
  1. Set up the environment variables:Add them in the .env file(you can find them in the .env.example file as well):
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY_HERE>
PORT=<YOUR_PORT_HERE>(default is 3000)
  1. Build the Project:: Run in the terminal
npm run build
# or for development
npm run build:watch
  1. Start the Server: Run the server:
npm run start
# or for development
npm run start:dev

Structure

  • README.md: Project overview and setup instructions.
  • package.json: Project metadata and dependencies.
  • src/: Source code directory.
    • app.ts: Main application entry point.
    • configs/: Configuration files.
    • constants/: Constant definitions.
    • middlewares/: Middleware functions.
    • modules/: Feature modules.
      • ask/: Handles ask-related functionality.
      • health/: Health check endpoints (handler, router).
      • ingest/: Data ingestion functionality.
    • server.ts: Server initialization and setup.
    • services/: Shared services.
    • types/: TypeScript type definitions.
      • modules/: Module-specific types.
      • shared/: Shared types.
  • tsconfig.json: TypeScript configuration.

About

Simple API for vector flow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published