Skip to content

Files

Latest commit

 

History

History

localhost_servers

Neurite Start Interface

Currently, the script is configured to run the following servers:

webscrape, a Node.js server for web scraping located in the webscrape directory

wiki-search, a Node.js for wiki searching located in the wikisearch directory

wolfram-alpha, a Node.js server interfacing with Wolfram Alpha located in the wolfram-alpha directory

ai-proxy, a Node.js server for handling api calls between Neurite's js interface and local or cloud hosted large language models.

automation, a Node.js server for running Neurite via Playwright, currently used for a headless browser option as well as for taking automated screenshots of Neurite.

direct-access, a Node.js server that uses fs to enable basic filetree access.

Prerequisites

Before running the script, make sure you have the following installed:

Node.js

npm

Usage

To start all servers (besides automation.js), run the start_servers.js script with Node.js by...

...navigating to the localhost_servers folder in the command line and running...

npm run start

to include the Playwright script add the flag, neurite

npm run start neurite

The Node.js servers will run npm install before starting, ensuring all dependencies are installed. If the dependencies are already installed and up-to-date, npm install will not reinstall them.

The one exception is the automation server which requires you to install playwright manually.

navigate to the automation folder in your CLI and run

npm i

then, follow the steps to install playwright.

From there, npm run start neurite will work.