Prerequisites
Before installing, ensure you have the following tools installed on your system:- Node.js (v18.0.0 or higher recommended)
- Git (for version control and synchronization features)
Step 1: Install Dependencies
StrataNote consists of three sub-packages (Client, Server, and Sync Agent). You can install dependencies for all components with a single command:- Open your terminal in the repository root directory.
- Navigate to the
_appfolder: - Run the installation script:
Step 2: Configure Environment Variables
The server loads configuration parameters from a.env file in the _app folder.
- In the
_appdirectory, copy the template configuration file:- Windows (PowerShell):
Copy-Item .env.template .env - Linux/macOS:
cp .env.template .env
- Windows (PowerShell):
- Open the newly created
.envfile in your text editor and customize the parameters:PORT— The port where the backend server will run (default is3001).VAULT_PATH— The path to your personal notes directory (vault). Supports both relative paths (e.g.,../my-vault, which resolves relative to the repository root directory) and absolute paths (e.g.,C:/Notes/MyVaultusing forward slashes on Windows or/home/user/vaulton Linux).GITHUB_TOKEN— Optional. A GitHub Personal Access Token to increase API limits when checking for application updates.
Step 3: Run the Application
You can start StrataNote in one of three ways depending on your environment:Method A: Single-Click Start (Windows Users)
If you are on Windows, you can start the entire application (including backend, frontend build checks, port scanning, and the sync agent) using a simple startup script:- Double-click the
start.batfile in the root of the repository. - The script will automatically:
- Scan starting from port
3001to find an available port. - Verify and install any missing synchronization agent dependencies.
- Compile frontend files if not already built.
- Start the server and launch StrataNote in your default web browser.
- Scan starting from port
Method B: Production Mode (Recommended for Server Deployment)
This builds and compiles the frontend assets, serving them statically from the backend server on port3001:
- Compile the client:
- Start the production server:
- Open
http://127.0.0.1:3001in your browser.
Method C: Development Mode (Hot-Reload Enabled)
Best for making code changes. It runs the Vite development server on port5173 with proxy redirection to the API server:
- Start the development servers:
- Open
http://localhost:5173in your browser.
Step 4: Running Test Suites (Optional)
Verify that your local deployment is working correctly by running automated integration tests:1. Media Integration Tests
Runs tests targeting binary asset chunked uploads and collision handling:2. Mobile Responsive Layout Tests
Runs Playwright E2E tests validating the responsive sidebar behavior, notification layouts, and navigation drawers on mobile viewport configurations (375x812):
