Quick Start Guide
Get the RAADS-R Self-Host application up and running in minutes. This guide will take you from clone to running app.Prerequisites
Before you begin, ensure you have:- Node.js version 18 or higher
- npm (comes with Node.js)
- Git for cloning the repository
Installation Steps
Install dependencies
Install the required npm packages:This installs:
- React 19.2.0 and React DOM
- Vite 7.3.1 for development and building
- Tailwind CSS v4 for styling
- TypeScript for type safety
- Vitest for testing
Start the development server
Launch the local development server:The application will be available at
http://localhost:5173Verify Installation
Once the development server is running, verify everything works:- Landing page loads: You should see the RAADS-R questionnaire introduction
- Dark mode toggle: Click the theme toggle to switch between light and dark modes
- Start questionnaire: Click to begin and verify the first question loads
- Navigate questions: Test the previous/next buttons
The development server supports hot module replacement (HMR), so changes to the source code will automatically reload in the browser.
Available Commands
Once installed, you have access to these npm scripts:Build for Production
When you’re ready to deploy, create a production build:Build the application
dist/ directory.Deploy the dist/ folder
Deploy the contents of the
dist/ folder to your hosting provider of choice.See the Deployment Guide for detailed deployment options.Testing the Application
The project includes comprehensive tests to ensure scoring accuracy:- 62 total tests validating all scoring logic
- Golden test vectors for uniform response patterns (189, 51, 143, 97)
- Cross-validation between two independent scoring engines
- Dataset structural tests confirming all 80 items are accounted for
- No overlap validation across the four clinical domains
Troubleshooting
Port 5173 already in use
If you see an error that port 5173 is already in use:Build fails with TypeScript errors
Ensure you’re using the correct Node.js version:Module not found errors
If you see module resolution errors, try:Project Structure
Understanding the project layout:Next Steps
Deployment Options
Learn about deploying to Netlify, Vercel, GitHub Pages, and more.
Customization
Customize the questionnaire and UI to fit your needs.