Installation & Setup
This guide will help you install and set up DataStoria on your local machine or server.
Use the Hosted Web Application
No installation required! You can start using DataStoria immediately by visiting datastoria.app, where a fully hosted web application is available.
Sign In with Your Account
The hosted version supports easy authentication with:
- Google account sign-in
- Microsoft account sign-in
- GitHub account sign-in
Simply visit datastoria.app, click "Sign In", and choose your preferred authentication provider. Once signed in, you can immediately connect to your ClickHouse instance and start using all features without any local installation.
This is the fastest way to get started and is perfect for:
- Quick evaluation and testing
- Teams that prefer cloud-hosted solutions
- Users who don't want to manage local installations
- Accessing DataStoria from any device with a web browser
Local Installation Options
If you prefer to run DataStoria locally or need more control over your deployment, choose from the installation options below.
Prerequisites
Before installing DataStoria, ensure you have:
- Node.js v22 or later (Download)
- pnpm package manager (install via
npm install -g pnpm) - Access to a ClickHouse instance (local or remote)
- If you don't have ClickHouse instance, you can use the ClickHouse Playground
Tip: After installation, you'll want to configure AI features to unlock natural language querying and intelligent optimization.
Installation Options
DataStoria offers multiple ways to get started:
Option 1: Build from Source (Recommended for Development)
This option is ideal if you want to customize DataStoria or contribute to the project.
Step 1: Clone the Repository
# Clone the repository with submodules
git clone --recurse-submodules https://github.com/FrankChen021/datastoria.git
cd datastoriaIf you've already cloned without submodules, initialize them:
git submodule update --init --recursiveStep 2: Install Dependencies
# Install all dependencies (this will also build required submodules)
npm install --forceThis command will:
- Install all npm dependencies
- Build the
number-flowcore and React packages - Build the
cmdkcommand palette component
Step 3: Start the Development Server
# Start all development servers
npm run devThis will start:
- The Next.js development server on
http://localhost:3000 - Watch mode for number-flow core
- Watch mode for number-flow React
- Watch mode for cmdk
Step 4: Access DataStoria
Open your browser and navigate to http://localhost:3000.
Option 2: Running with Docker
The easiest way to run DataStoria is using the pre-built Docker image. This is perfect for production deployments or quick testing.
Quick Start
# Run DataStoria using Docker
docker run -d -p 3000:3000 frankchen021/datastoria:latestThen open http://localhost:3000 in your browser.
Platform Support
The Docker image supports both linux/amd64 and linux/arm64 platforms, so it runs natively on:
- Intel/AMD machines
- Apple Silicon Macs (M1, M2, M3, etc.)
- ARM-based servers
Docker Compose (Optional)
For a more production-ready setup, you can use Docker Compose:
version: '3.8'
services:
datastoria:
image: frankchen021/datastoria:latest
ports:
- "3000:3000"
environment:
- NODE_ENV=production
restart: unless-stoppedSave this as docker-compose.yml and run:
docker-compose up -dBuilding for Production
If you've built from source and want to create a production build:
# Build the application
npm run build
# Start the production server
npm startThe production server will run on http://localhost:3000 by default.
Troubleshooting
Common Issues
Port Already in Use
If port 3000 is already in use, you can change it:
# For Next.js
PORT=3001 npm run devSubmodule Build Errors
If you encounter errors building submodules:
# Clean and rebuild
rm -rf node_modules
rm -rf external/number-flow/packages/*/node_modules
rm -rf external/cmdk/cmdk/node_modules
npm install --forceDocker Permission Issues
If you get permission errors with Docker:
# On Linux, add your user to the docker group
sudo usermod -aG docker $USER
# Then log out and log back inNext Steps
Once DataStoria is installed and running:
- First Connection — Learn how to connect to your ClickHouse instance
- AI Model Configuration — Set up AI features with your API keys
