PrepVerse is a modern, data-driven platform designed to help students and parents track academic progress, set goals, and gain insights into their learning journey.
- Dynamic Student Dashboard: A centralized hub showing overall progress, daily goals, upcoming tests, and syllabus completion.
- Interactive Progress Grid: A customizable grid to track syllabus completion by subject, chapter, and module.
- Intelligent Question Log: Log every question solved to analyze accuracy by subject and chapter, identifying strengths and weaknesses.
- In-depth Test Analysis: Record mock test results to analyze scores, accuracy, and performance over time.
- Parent-Student Sync: A secure way for parents to view their child's progress in a read-only dashboard, fostering support and encouragement.
- Advanced Goal Setting: Set daily goals and track consistency with a visual heatmap.
This guide will walk you through deploying your Next.js application using GitHub and Vercel.
First, you need to get your project code into a repository on GitHub.
-
Create a new repository on GitHub:
- Go to GitHub and click the "+" icon in the top-right corner, then select "New repository".
- Give your repository a name (e.g.,
prepverse-app). - Choose whether to make it public or private.
- Click "Create repository".
-
Initialize Git in your project folder:
- In your local project directory, open a terminal and run the command:
git init -b main
- In your local project directory, open a terminal and run the command:
-
Add and commit your files:
- Stage all your files for the first commit:
git add . - Commit the files:
git commit -m "Initial commit"
- Stage all your files for the first commit:
-
Connect your local repository to GitHub:
- On your new GitHub repository page, copy the remote repository URL. It will look something like
https://github.com/your-username/your-repo-name.git. - Link your local repository to the one on GitHub by running:
git remote add origin <YOUR_REPOSITORY_URL>
- On your new GitHub repository page, copy the remote repository URL. It will look something like
-
Push your code to GitHub:
- Push your local
mainbranch to the remote repository on GitHub:git push -u origin main
- Push your local
With your code on GitHub, deploying to Vercel is straightforward.
-
Sign up or log in to Vercel:
- Go to Vercel and sign up for a new account, preferably using your GitHub account for seamless integration.
-
Import your project:
- From your Vercel dashboard, click "Add New..." and select "Project".
- The "Import Git Repository" screen will appear. If you've connected your GitHub account, you should see a list of your repositories.
- Find your new repository (e.g.,
prepverse-app) and click the "Import" button next to it.
-
Configure your project:
- Vercel will automatically detect that you're using Next.js and configure most of the build settings for you. You typically don't need to change anything here.
- Crucially, you need to add your Environment Variables. Expand the "Environment Variables" section.
- You need to add the keys from your
.envfile. For this project, you will need to add:NEXT_PUBLIC_SUPABASE_URL: Copy the value from your Supabase project settings.NEXT_PUBLIC_SUPABASE_ANON_KEY: Copy the value from your Supabase project settings.
- Click "Add" for each variable.
-
Deploy:
- Click the "Deploy" button.
- Vercel will now build and deploy your application. You'll see the build logs in real-time. Once it's done, you'll get a URL to your live site.
That's it! Your application will now be live on Vercel. Every time you push a new commit to your main branch on GitHub, Vercel will automatically redeploy the changes for you.