- Download Node.js from https://nodejs.org/
- Choose the LTS version (recommended)
- Run the installer and follow the prompts
- Verify installation by opening a new Command Prompt or PowerShell and running:
node --version npm --version
- Download Python from https://www.python.org/downloads/
- Choose Python 3.8 or higher
- IMPORTANT: Check "Add Python to PATH" during installation
- Verify installation:
python --version pip --version
- Download from https://git-scm.com/download/win
- Run the installer with default settings
- Verify:
git --version
-
Navigate to the backend directory:
cd srla_webstack -
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
# For Command Prompt: venv\Scripts\activate # For PowerShell: venv\Scripts\Activate.ps1 -
Install Python dependencies:
pip install -r requirements.txt -
Create a .env file:
copy .env.example .env -
Edit the .env file with your API keys (use Notepad or any text editor)
-
Initialize the database:
python -c "from api.server import app, db; app.app_context().push(); db.create_all()" -
Start the Flask server:
python api/server.pyThe backend should now be running at http://localhost:8000
- Open a new terminal/command prompt
- The web frontend is static HTML/CSS/JS, so you can:
- Open
srla_webstack/index.htmldirectly in a browser - Or use Python's built-in server:
cd srla_webstack python -m http.server 3000 - Then open http://localhost:3000 in your browser
- Open
-
Open a new terminal/command prompt
-
Navigate to the mobile app directory:
cd srla-mobile -
Install Expo CLI globally:
npm install -g expo-cli -
Install project dependencies:
npm install -
Create a .env file:
copy .env.example .env -
Start the Expo development server:
npm startor
expo start -
This will open Expo Dev Tools in your browser. From there you can:
- Press
wto open in web browser - Scan the QR code with Expo Go app on your phone
- Press
afor Android emulator (requires Android Studio) - Press
ifor iOS simulator (Mac only)
- Press
Terminal 1 - Backend:
cd srla_webstack
venv\Scripts\activate
python api/server.py
Terminal 2 - Web Frontend:
cd srla_webstack
python -m http.server 3000
Terminal 3 - Mobile App:
cd srla-mobile
npm start
- Make sure Node.js is installed
- Close and reopen your terminal after installation
- Check if npm is in your PATH
- Ensure Python was added to PATH during installation
- Try using
pyinstead ofpython
Run this command as Administrator:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Change the port in the respective configuration
- Or find and stop the process using the port
- Ensure the backend is running
- Update API_BASE_URL in .env to your computer's IP address (not localhost) for physical device testing
- Access the web portal at http://localhost:3000
- Create a test patient account
- Test the appointment booking system
- Try the AI chatbot
- Test the mobile app on your device
If you encounter issues:
- Check the console for error messages
- Ensure all services are running
- Verify your .env files are configured correctly
- Check that all dependencies are installed