Welcome to the NoteIt project! This guide provides everything you need to set up your development environment, run the apps locally, and build the final installers.
Follow these steps once to prepare your machine.
-
Git: Ensure Git is installed on your system.
-
Node.js:
v20.10.0or later is required. -
Bun:
v1.1.21or later is required (the project is locked to this version).You can verify your installed versions by running:
node -v bun -v
-
Clone the Repository:
git clone https://github.com/Dhruv2mars/noteit.git cd noteit -
Install All Dependencies: From the root directory of the project, run:
bun install
This command reads the
bun.lockbfile and installs all the necessary packages for the entire project (both the Expo and Electron apps).
This section explains how to run the apps on your local machine for development and testing.
If you are working on the mobile app or the web interface:
- Navigate to the Expo app directory:
cd apps/noteit-expo - Start the development server:
Note: The
bun installcommand you ran earlier already installed the correct version of the Expo CLI for this project. A separate global install is not needed.bun run dev
- The terminal will show you options to open the app:
- Press
wto open it in your web browser. - Scan the QR code with the Expo Go app on your iOS or Android device.
- Press
Running the desktop app requires two terminals running at the same time, because the Electron shell loads its content from the Expo web development server.
Terminal 1: Start the Web Content Server
- Navigate to the Expo app directory:
cd apps/noteit-expo - Start the web development server specifically:
bun run web
- Wait for the compilation to finish. You will see a message that the project is running on
http://localhost:8081. Leave this terminal running.
Terminal 2: Start the Electron App
- Open a new terminal window.
- Navigate to the Electron app directory:
cd apps/noteit-electron - Start the Electron development process:
bun run dev
- After a moment, the NoteIt desktop application window will appear. It will load its content from
localhost:8081(from Terminal 1), and you will see the actual app, not a blank template.
This section is for contributors who are helping create the final installable files for different operating systems.
Ensure you have the necessary tools for your specific OS:
- Windows: If you encounter build errors, you may need to install the C++ build tools via the Visual Studio Installer.
- macOS: Xcode Command Line Tools are required. Run
xcode-select --installif you don't have them. - Linux: You may need packages like
fakerootordpkgfor certain build targets.
All build commands must be run from the Electron app's directory (apps/noteit-electron).
-
Navigate to the directory:
cd apps/noteit-electron -
Run the build command for your platform:
-
For macOS:
bun run build -- --mac
-
For Windows (NSIS Installer):
bun run build -- --win nsis
-
For Linux (AppImage recommended):
bun run build -- --linux appimage
-
- After a successful build, find the installer file in the
apps/noteit-electron/out/dist/directory. - Please upload the installer to a file-sharing service (like Google Drive or Dropbox) and share the link with the project maintainer (@Dhruv2mars).
Thank you for your contribution!