Setup your development environment
Learn how to update your docs locally and deploy them to the web.
Prerequisites
Before you begin, make sure you have:
- Node.js 18+ installed
- A text editor (VS Code recommended)
- Git for version control
Download and install Node.js from nodejs.org. We recommend using the LTS version.Verify your installation:node --version
npm --version
Install Git from git-scm.com and configure your identity:git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Clone the repository
Start by cloning the FlashMind repository:
git clone https://github.com/yourusername/flash.git
cd flash
Install dependencies
Install the required dependencies using npm:
Environment setup
Create environment file
Copy the example environment file:cp .env.example .env.local
Configure Convex
Set up your Convex backend:This will prompt you to create a new Convex project. Configure Clerk
Add your Clerk keys to .env.local:NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key
Start development
Run the development server:
The development command runs both the Next.js frontend and Convex backend in parallel.
Open http://localhost:3000 to see your application running.
Create your first deck
Sign up
Navigate to the sign-up page and create your account using Clerk authentication.
Create a deck
Click “Create Deck” and give it a name and description.
Add cards
Start adding flashcards to your deck with questions and answers.
Start studying
Begin your first study session and experience the spaced repetition algorithm.
Next steps