Skip to content

AOSSIE-Org/DebateAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup Guide

Backend Setup

  1. Navigate to the backend directory:
    cd backend
  2. Run the backend server:
    go run cmd/server/main.go

Frontend Setup

  1. Navigate to the frontend directory:
    cd frontend
  2. Install dependencies:
    npm install
  3. Create an environment file:
    • Create a .env file in the frontend directory.
    • Add the following environment variables:
      VITE_BASE_URL="http://localhost:<BACKEND_SERVER_PORT>"
  4. Start the development server:
    npm run dev

Setting Up Amazon Cognito

Follow these steps to configure Amazon Cognito for authentication:

  1. Navigate to Cognito

  2. Create a User Pool

    • Configure authentication settings as per your requirements.
  3. Retrieve Credentials

    • Once the User Pool is set up, obtain the necessary credentials:
      • User Pool ID
      • App Client ID
  4. Update Application Configuration

    • Add the retrieved credentials to your application's configuration file (e.g., config.yml).
    • Enable the following settings in Cognito's app-client:
      • Choice-based sign-in
      • Username and password authentication
      • Get user tokens from existing authenticated sessions
      • Secure Remote Password (SRP) protocol

For more details, refer to the official AWS documentation.

Setting Up OpenAI API Key

To use OpenAI services, obtain an API key from OpenRouter:

  1. Visit OpenRouter and sign up if you don't have an account.
  2. Generate an API key from your OpenRouter dashboard.
  3. Add the API key to your config.yml file.

This guide follows the project implementation approach. If you encounter any issues, check the AWS documentation or relevant project files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published