Skip to content
VibeOps-DevPublic

About

A modern UI Chatbot application built with Vue 3, Ollama and Express.js, designed to provide interactive user experience.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

73 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SevaAgent

A modern web application built with Vue 3 and Express.js, designed to provide a seamless and interactive user experience.

Table of Contents

Features

  • Frontend: Built with Vue 3 and Vite for a fast and responsive user interface.
  • Backend: Powered by Express.js for handling API requests and business logic.
  • State Management: Uses Pinia for state management in the frontend.
  • Internationalization: Supports multiple languages with vue-i18n.
  • Security: Implements security best practices with Helmet, CORS, and rate limiting.
  • Database: Uses PostgreSQL for data storage.
  • Authentication: Secure authentication with JWT and bcrypt.

Technologies Used

Frontend

  • Vue 3: Progressive JavaScript framework for building user interfaces.
  • Vite: Next-generation frontend tooling for fast builds and development.
  • Pinia: Intuitive and type-safe state management for Vue.
  • Axios: Promise-based HTTP client for making API requests.
  • Vue Router: Official router for Vue.js applications.
  • UnoCSS: Atomic CSS engine for styling.
  • Lucide Icons: Beautifully crafted icon library.

Backend

  • Express.js: Fast, unopinionated, minimalist web framework for Node.js.
  • PostgreSQL: Powerful, open-source relational database.
  • JWT (JSON Web Tokens): For secure authentication.
  • Bcrypt: For password hashing.
  • Helmet: Helps secure Express apps by setting various HTTP headers.
  • CORS: Middleware for enabling CORS (Cross-Origin Resource Sharing).
  • Morgan: HTTP request logger middleware.
  • Nodemailer: For sending emails.

Project Structure

SevaAgent/
├── client/               # Frontend application
│   ├── public/           # Public assets
│   ├── src/              # Source code
│   ├── package.json      # Frontend dependencies and scripts
│   └── README.md         # Frontend-specific documentation
│
├── server/               # Backend application
│   ├── src/              # Source code
│   ├── scripts/          # Utility scripts
│   ├── package.json      # Backend dependencies and scripts
│   └── index.js          # Entry point for the backend
│
└── README.md            # Project-wide documentation

Installation

Prerequisites

  • Node.js (v20.19.0 or higher)
  • pnpm (v10.29.2 or higher)
  • PostgreSQL

Steps

  1. Clone the repository:

    git clone <repository-url>
    cd SevaAgent
  2. Install dependencies:

    • For the frontend:

      cd client
      pnpm install
    • For the backend:

      cd server
      pnpm install
  3. Set up environment variables:

    • Create a .env file in the server directory and add the necessary environment variables. Refer to .env.example if available.
  4. Run database migrations:

    cd server
    pnpm db:migrate
  5. Seed the database (optional):

    cd server
    pnpm db:seed

Usage

Development

  1. Start the backend server:

    cd server
    pnpm dev
  2. Start the frontend development server:

    cd client
    pnpm dev
  3. Open your browser and navigate to http://localhost:5173 (or the port specified in your Vite configuration).

Production

  1. Build the frontend:

    cd client
    pnpm build
  2. Start the backend server:

    cd server
    pnpm start

Scripts

Frontend

Script Description
pnpm dev Start the development server.
pnpm host:dev Start the development server with host mode.
pnpm build Build the project for production.
pnpm preview Preview the production build locally.
pnpm lint Run linting on the project.

Backend

Script Description
pnpm dev Start the development server with Nodemon.
pnpm start Start the production server.
pnpm list:routes List all available routes.
pnpm db:migrate Run database migrations.
pnpm db:seed Seed the database with initial data.
pnpm db:refresh Refresh the database (migrate and seed).

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/your-feature).
  6. Open a pull request.

License

This project is licensed under the ISC License. See the LICENSE file for details.

About

A modern UI Chatbot application built with Vue 3, Ollama and Express.js, designed to provide interactive user experience.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages