Skip to content

Useful Agent Hackathon (near ai hackathon) for vacation-mode agent. archive data into near RAG for vacation-mode agent

Notifications You must be signed in to change notification settings

hackathonprojs/vacation_mode_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vacation Mode Server

A simple web application that provides a one-click solution to activate "vacation mode" by executing a command on the server. The application features a clean, modern interface with a large button that triggers the command execution.

Features

  • Put data into RAG

Prerequisites

  • Node.js (v12 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:
git clone [repository-url]
cd vacation_mode_server
  1. Install dependencies:
npm install

Usage

  1. Start the server:
npm start
  1. Open your web browser and navigate to:
http://localhost:3000
  1. Click the "Execute Command" button to trigger the server-side command.

Project Structure

  • server.js - Main server file containing the Express.js setup and command execution logic
  • public/index.html - Frontend interface with the button and styling
  • package.json - Project configuration and dependencies

Command Configuration

The command that gets executed when the button is pressed is configured in server.js. Currently, it is set to:

const command = 'cd /home/t/.nearai/registry/solwu.near/docs-ai-tutorial/0.0.1/ && python3 vector.py';

License

ISC

About

Useful Agent Hackathon (near ai hackathon) for vacation-mode agent. archive data into near RAG for vacation-mode agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published