This document explains how to set up and run the DeepvoidGate project locally, as well as how to prepare the Android build using Capacitor.
Make sure you have the following installed on your machine:
-
Node.js (version 16 or higher recommended)
Download Node.js -
npm or yarn (comes with Node.js)
-
Vite (installed locally as dependency, no global install required)
-
Android Studio (for Android build)
Download Android Studio -
Java Development Kit (JDK)
Usually bundled with Android Studio, but you can also install separately (JDK 11+ recommended).
git clone https://github.com/yourusername/deepvoidgate.git
cd deepvoidgateUsing npm:
npm installor yarn:
yarn installTo start the app in development mode and access it on your local network:
npm run devThis will start Vite with the server accessible at http://localhost:5173 (default port) and bind to all interfaces (0.0.0.0) for LAN testing.
To create a production build optimized for deployment:
npm run buildThe build output will use the base path https://cloud.fern.fun/deepvoidgate/demo/ as configured.
- Open Android Studio.
- Make sure SDK tools and emulator are installed.
- Configure an Android device or emulator.
Run the following command to build the web app, sync with Capacitor, and open the Android project in Android Studio:
npm run build:androidThis command performs:
- Vite production build
npx cap syncto update Capacitor native projectsnpx cap open androidto launch Android Studio with the project loaded
Inside Android Studio:
- Select your connected device or emulator.
- Click Run (green play button) to compile and launch the app.
npm run build:dev– build the app using Vite in development mode (unminified)npm run preview– preview the production build locallynpm run lint– run ESLint checks on the codebase
- Make sure all environment variables and Android SDK paths are correctly configured.
- Ensure Android Studio is updated with the required SDK platforms and build tools.
- If
npx cap syncfails, try deletingnode_modulesand reinstalling dependencies. - Use
npm run devfor fast iteration during development.
If you have any questions or need help setting up, feel free to open an issue or contact the maintainer.
Happy coding and exploring DeepvoidGate!