A interactive prototype template for building and showcasing mobile app designs. This template provides a phone frame mockup with customizable settings, making it perfect for creating interactive prototypes and demos.
This project includes:
- π± Phone Frame Mockup - A realistic phone interface to display your designs
- π¨ Live Settings Panel - Adjust theme, animations, and features in real-time
- β‘ Hot Reload - See your changes instantly as you work
- π Built with Next.js - Fast, modern web framework
- π Motion Animations - Smooth, professional animations built-in
Before getting started, make sure you have these installed on your computer:
Node.js allows you to run this project on your computer.
Check if you have it:
node --versionIf you need to install it:
- Download from nodejs.org
- Choose the LTS version (recommended for most users)
- Follow the installer instructions
You'll need a code editor to make changes. We recommend:
- Visual Studio Code (Most popular, great for beginners)
- Cursor (AI-powered editor)
Git helps you track changes and collaborate with others.
Check if you have it:
git --versionIf you need to install it:
- Download from git-scm.com
Option A: Using Git (Recommended)
git clone <your-repository-url>
cd adp-options-apiOption B: Download ZIP
- Click the green "Code" button on GitHub
- Select "Download ZIP"
- Extract the ZIP file to your desired location
- Open Terminal (Mac) or Command Prompt (Windows)
- Navigate to the folder:
cd path/to/adp-options-api
Dependencies are packages of code that this project needs to run. Install them with:
npm installThis will take a few minutes the first time. You'll see a lot of text scroll by - that's normal!
What's happening? This command reads the package.json file and downloads all the necessary code packages.
Now let's run the project on your computer:
npm run devYou should see something like:
β² Next.js 16.1.5
- Local: http://localhost:3000
- Ready in 2.3s
- Open your web browser (Chrome, Safari, Firefox, etc.)
- Go to: http://localhost:3000
- You should see your prototype with a phone mockup and settings panel!
π Success! Your prototype is now running locally.
The project will automatically reload when you save changes. Try editing these files:
app/components/PrototypeScreen.tsx- The main content inside the phoneapp/components/Sidebar.tsx- The settings panelapp/components/PhoneFrame.tsx- The phone frame design
Tip: Keep the terminal window open while you work. If you see errors, they'll appear here.
Here's what each folder and file does:
adp-options-api/
βββ app/ # Main application folder
β βββ components/ # Reusable UI components
β β βββ PhoneFrame.tsx # The phone mockup frame
β β βββ PrototypeScreen.tsx # Content inside the phone
β β βββ Sidebar.tsx # Settings panel on the right
β βββ globals.css # Global styles
β βββ layout.tsx # Page wrapper/layout
β βββ page.tsx # Home page (main entry point)
βββ public/ # Static files (images, icons)
βββ package.json # Project dependencies and scripts
βββ tsconfig.json # TypeScript configuration
βββ README.md # This file!
npm run devOpens the prototype at http://localhost:3000
Press Ctrl + C in the terminal window
npm install package-namenpm run lintnpm run build
npm startVercel is a platform that hosts your prototype online, making it easy to share with your team.
This method automatically deploys your prototype whenever you push changes to GitHub.
- Create a new repository on GitHub
- Follow GitHub's instructions to push your code:
git remote add origin <your-github-repo-url> git add . git commit -m "Initial commit" git push -u origin main
- Go to vercel.com and sign up/log in
- Click "Add New Project"
- Click "Import Git Repository"
- Select your GitHub repository
- Vercel will auto-detect it's a Next.js project - just click "Deploy"!
That's it! Vercel will:
- Build your project
- Assign a URL (e.g.,
your-project.vercel.app) - Automatically deploy updates when you push to GitHub
Once deployed, you'll get a URL like: https://your-project.vercel.app
Share this link with anyone to show them your prototype!
If you prefer to deploy from your terminal:
npm install -g vercelvercel loginvercelFollow the prompts. Vercel will ask:
- Set up and deploy? β Yes
- Which scope? β Select your account
- Link to existing project? β No (first time)
- What's your project's name? β Enter a name or press Enter
- In which directory is your code located? β
./(press Enter)
After deployment, you'll get a URL to your live prototype!
Whenever you want to deploy changes:
vercel --prodAfter deploying, visit your Vercel Dashboard to:
- π View deployment history
- π Manage custom domains
- βοΈ Configure environment variables
- π See analytics and performance metrics
- π Roll back to previous versions
Solution: Node.js isn't installed. Follow the Prerequisites section.
Solution: Another application is using port 3000.
- Stop the other application, or
- Use a different port:
PORT=3001 npm run dev
Solution: Dependencies aren't installed. Run:
npm installSolution:
- Check the terminal for errors
- Try refreshing your browser with
Cmd + Shift + R(Mac) orCtrl + Shift + R(Windows) - Stop the server (
Ctrl + C) and restart it (npm run dev)
Solution:
- Check that your code works locally first (
npm run build) - Make sure all your files are committed to Git
- Check the build logs in the Vercel dashboard for specific errors
- Next.js Documentation: nextjs.org/docs
- Vercel Documentation: vercel.com/docs
- Motion Library: motion.dev/docs
- Start with
PrototypeScreen.tsx- This is where you'll spend most of your time - Use the sidebar - Test different themes and settings without changing code
- Hot reload is your friend - Save your file and instantly see changes
- Don't worry about breaking things - You can always undo changes with Git
- Deploy early and often - Share your work-in-progress to get feedback quickly
Happy prototyping! π¨β¨