mirror of
https://github.com/soconnor0919/hristudio.git
synced 2026-05-08 05:48:56 -04:00
4.4 KiB
4.4 KiB
Tutorial 1: Getting Started
Learn how to set up HRIStudio and log in for the first time.
Objectives
- Install HRIStudio dependencies
- Start the development environment
- Log in and explore the interface
Prerequisites
Step 1: Clone the Repository
git clone https://github.com/soconnor0919/hristudio.git
cd hristudio
Step 2: Install Dependencies
HRIStudio uses Bun as its package manager:
bun install
Step 3: Start the Database
HRIStudio requires PostgreSQL. The easiest way is using Docker:
# Start PostgreSQL and MinIO (for file storage)
bun run docker:up
# Push database schema
bun db:push
# Seed with sample data
bun db:seed
This creates the database schema and populates it with:
- 4 default user accounts
- Sample study and experiments
- Test participants and trials
Step 4: Start the Development Server
bun dev
The application will be available at http://localhost:3000.
Step 5: Log In
Use one of the default accounts:
| Role | Password | |
|---|---|---|
| Administrator | sean@soconnor.dev |
password123 |
| Researcher | felipe.perrone@bucknell.edu |
password123 |
| Wizard | emily.watson@lab.edu |
password123 |
| Observer | maria.santos@tech.edu |
password123 |
Exploring the Interface
After logging in, you'll see the main dashboard:
┌─────────────────────────────────────────────────────────────┐
│ HRIStudio [User] [Settings] │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Studies │ │ Trials │ │Plugins │ │ Admin │ │
│ └─────────┘ └─────────┘ └─────────┘ └─────────┘ │
│ │
│ Recent Activity │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ • Study: Comparative WoZ Study - Ready │ │
│ │ • Trial: P101 - Completed (5 min ago) │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
Navigation
- Studies - View and manage your research studies
- Trials - Monitor and manage experiment trials
- Plugins - Manage robot integrations
- Admin - System administration (admins only)
Using Simulation Mode
If you don't have a physical robot, enable simulation mode:
- Create or edit
hristudio/.env.local - Add:
NEXT_PUBLIC_SIMULATION_MODE=true - Restart the dev server
Simulation mode allows you to test experiments without connecting to a real robot.
Troubleshooting
Database Connection Failed
# Check if Docker is running
docker ps
# Restart the database
bun run docker:down
bun run docker:up
bun db:push
Port Already in Use
If port 3000 is in use:
# Use a different port
PORT=3001 bun dev
Seed Script Fails
# Reset the database
bun run docker:down -v
bun run docker:up
bun db:push
bun db:seed
Next Steps
Now that you're set up:
- Your First Study - Create a research study
- Designing Experiments - Build your first protocol
- Simulation Mode - Test without a robot
Previous: Tutorials Overview | Next: Your First Study