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.
- Put data into RAG
- Node.js (v12 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone [repository-url]
cd vacation_mode_server
- Install dependencies:
npm install
- Start the server:
npm start
- Open your web browser and navigate to:
http://localhost:3000
- Click the "Execute Command" button to trigger the server-side command.
server.js
- Main server file containing the Express.js setup and command execution logicpublic/index.html
- Frontend interface with the button and stylingpackage.json
- Project configuration and dependencies
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';
ISC