Code Monkey home page Code Monkey logo

stella-app's Introduction

AI Chat Application

This project provides a streamlined setup process for a Nuxt.js application that seamlessly integrates with the Stella framework. It offers a convenient environment for building interactive chat applications or leveraging Stella's features within your Nuxt projects.

Demo

New Update Demo

Chat-stella.1.mp4

Fiest Demo https://github.com/aminhaghi86/stella-app/assets/90243818/15fdc551-822e-440f-8ab2-cee6ae022b16

Installation

  • Clone the Repository

  • Install dependency of this project run

  npm install
  • Stella Configuration

Setup STELLA (simple tutorial in documentation) : https://docs.stellaframework.com/Getting_Started.html)

Nuxt.js Configuration

  1. Create .env File: At the root of your project, create a file named .env. This file will store environment variables for your Nuxt.js application.
BASE_URL="http://localhost:5001"  # Replace with your backend URL
SOCKET_HOST="localhost"
SOCKET_PORT="5001"
SOCKET_SSL="false"
SOCKET_NAMESPACE="/chat"

Update nuxt.config.ts:

Open nuxt.config.ts and add the following code block:

export default defineNuxtConfig({
  devtools: { enabled: true },
  runtimeConfig: {
    public: {
      SOCKET_HOST: process.env.SOCKET_HOST,
      SOCKET_PORT: process.env.SOCKET_PORT,
      SOCKET_SSL: process.env.SOCKET_SSL,
      SOCKET_NAMESPACE: process.env.SOCKET_NAMESPACE,
      DEFAULT_WORKSPACE_ID: process.env.DEFAULT_WORKSPACE_ID, // Add this line if needed
    },
    private: {
      // Define private variables here (not exposed on client-side)
    },
  },
});

Development

Client :

Execute the following command

npm run dev

Run Stella on terminal

 stella serve

USE Stella CLI on terminal

  stella

Enjoy your chat!

stella-app's People

Contributors

aminhaghi86 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.