Getting Started¶
This guide will walk you through setting up the SmartGlasses development environment on your local machine.
Prerequisites¶
Before you begin, ensure you have the necessary tools installed on your system. You'll need Git as your version control system (Download), Visual Studio Code as your code editor (Download), and Docker Desktop as the container platform (Download). Additionally, install the VS Code Dev Containers Extension for development container support (View on Marketplace).
Installing VS Code Extensions¶
- Open Visual Studio Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for and install: Dev Containers by Microsoft
Step 1: Clone the Repository¶
Clone the SmartGlasses repository to your local machine:
Step 2: Open the Workspace¶
The project uses a VS Code workspace file to organize the multi-folder structure:
- Open Visual Studio Code
- Use one of these methods:
- File > Open Workspace from File > Select
SmartGlasses.code-workspace - Or from command line:
code SmartGlasses.code-workspace - Or in file explorer, right-click
SmartGlasses.code-workspaceand choose "Open with Code"
The workspace includes three main folders: the Root folder contains the main project documentation and configuration files, the Server folder houses the FastAPI backend service, and the Client folder contains the Expo React Native mobile application.
Step 3: Start the Development Container¶
The project uses Docker dev containers for a consistent development environment:
Automatic Setup:
- When you open the workspace, VS Code should automatically detect the
.devcontainerconfiguration and prompt you to "Reopen in Container"
Manual Setup:
- If not prompted automatically:
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Dev Containers: Rebuild and Reopen in Container"
- Select this option
Note
The initial container build may take 5-10 minutes as it downloads the Python 3.12 base image, installs development tools including Node.js, Android SDK, FFmpeg, and Docker CLI, configures VS Code extensions, and sets up the complete development environment.
Step 4: Verify Installation¶
Once the container is running, verify everything is set up correctly:
Check Python Environment¶
Check Node.js Environment¶
Check Docker Access¶
Step 5: Install Project Dependencies¶
Server Dependencies (FastAPI)¶
Next Steps
See Server setup & run for the server setup and how to run the FastAPI backend.
Client Dependencies (React Native/Expo)¶
Next Steps
See Client setup & run for the client setup and how to start the Expo development server.
Notebook Dependencies (Optional - for AI/ML development)¶
Next Steps
See Notebooks setup & run for details on installing notebook dependencies and running notebooks.
Step 6: Building¶
Next Steps
See Building the Application for instructions on how to build and run the Signapse application.