Skip to content

A basic chat application, with a Typescript frontend and Go backend. Designed as a learning exercise to get more comfortable with statically-typed languages like Go and to demonstrate my existing full-stack expertise.

Notifications You must be signed in to change notification settings

aramxc/OsirisAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OsirisAI

A basic AI chat agent that will eventually be hooked up to a vector database.

Setup

Prerequisites

  • Go 1.16 or later
  • Node.js 14 or later
  • npm 6 or later

Backend Setup

  1. Navigate to the backend directory:

    cd app/api
    
  2. Install dependencies:

    go mod tidy
    
  3. Run the backend server:

    go run main.go
    

The backend server will start on http://localhost:8080.

Frontend Setup

  1. Navigate to the frontend directory:

    cd app/frontend
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm start
    

The frontend development server will start, typically on http://localhost:3000.

Running the Application

  1. Start the backend server as described above.
  2. In a separate terminal, start the frontend development server.
  3. Open your browser and navigate to http://localhost:3000 to use the application.

Development

  • The backend code is located in app/api/main.go.
  • The frontend code is in the app/frontend/src directory, with App.tsx as the main component.
  • Tailwind CSS is used for styling. The configuration is in app/frontend/tailwind.config.js.

Notes

  • The backend currently sends random phrases as responses. Future plan is to implement some AI logic to replace this behavior.
  • Ensure both backend and frontend are running simultaneously for the application to work properly.

About

A basic chat application, with a Typescript frontend and Go backend. Designed as a learning exercise to get more comfortable with statically-typed languages like Go and to demonstrate my existing full-stack expertise.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published