Follow these steps to install and run NoterAI locally.
Before setting up the project, ensure you have the following installed:
- Node.js (>= X.X.X)
- npm (>= X.X.X)
- Flutter (>= X.X.X)
- pnpm (>= X.X.X)
- Docker (for setting up Redis and Prisma database)
- Xcode: Install Xcode via the App Store and ensure that you have the latest version.
- CocoaPods: Run
sudo gem install cocoapods
if not installed.
- Android Studio: Install Android Studio and set up the necessary SDKs.
- Ensure you have Flutter installed.
First, clone the repository to your local machine:
git clone https://github.com/himasnhu-at/noterai.git
cd noterai
Navigate to the project root and install the necessary dependencies using pnpm
:
pnpm install
Create a .env
file in the /apps/backend
and /apps/web
directories based on the provided .env.example
files:
cp apps/backend/.env.example apps/backend/.env
cp apps/web/.env.example apps/web/.env
Make sure to configure your Redis and Prisma database URLs.
Start both the backend and frontend using Turbo:
pnpm dev
Alternatively, use Turbo to run specific parts:
# Backend
turbo run dev --filter=@noterai/backend
# Web
turbo run dev --filter=@noterai/web
Navigate to the /apps/flutter
directory and run the project:
flutter run
Ensure that you have a connected device or emulator running.
Ensure that you have Docker running for Prisma and Redis:
docker-compose up
Then run migrations:
pnpm prisma migrate dev
You can run tests to ensure everything is set up correctly:
pnpm test
If you encounter issues during setup, please check our FAQ or open an issue in the GitHub repository.