Skip to content

wtvres/sidebyside

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GYG Prototype Template

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.

What's Inside

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

Prerequisites (What You Need First)

Before getting started, make sure you have these installed on your computer:

1. Node.js (Required)

Node.js allows you to run this project on your computer.

Check if you have it:

node --version

If you need to install it:

  • Download from nodejs.org
  • Choose the LTS version (recommended for most users)
  • Follow the installer instructions

2. A Code Editor (Recommended)

You'll need a code editor to make changes. We recommend:

3. Git (Optional but Recommended)

Git helps you track changes and collaborate with others.

Check if you have it:

git --version

If you need to install it:


Getting Started - Step by Step

Step 1: Download the Project

Option A: Using Git (Recommended)

git clone <your-repository-url>
cd adp-options-api

Option B: Download ZIP

  1. Click the green "Code" button on GitHub
  2. Select "Download ZIP"
  3. Extract the ZIP file to your desired location
  4. Open Terminal (Mac) or Command Prompt (Windows)
  5. Navigate to the folder:
    cd path/to/adp-options-api

Step 2: Install Dependencies

Dependencies are packages of code that this project needs to run. Install them with:

npm install

This 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.

Step 3: Start the Development Server

Now let's run the project on your computer:

npm run dev

You should see something like:

β–² Next.js 16.1.5
- Local:        http://localhost:3000
- Ready in 2.3s

Step 4: View Your Prototype

  1. Open your web browser (Chrome, Safari, Firefox, etc.)
  2. Go to: http://localhost:3000
  3. You should see your prototype with a phone mockup and settings panel!

πŸŽ‰ Success! Your prototype is now running locally.

Step 5: Make Changes

The project will automatically reload when you save changes. Try editing these files:

  • app/components/PrototypeScreen.tsx - The main content inside the phone
  • app/components/Sidebar.tsx - The settings panel
  • app/components/PhoneFrame.tsx - The phone frame design

Tip: Keep the terminal window open while you work. If you see errors, they'll appear here.


Project Structure

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!

Common Tasks

Starting the Project

npm run dev

Opens the prototype at http://localhost:3000

Stopping the Project

Press Ctrl + C in the terminal window

Installing a New Package

npm install package-name

Checking for Errors

npm run lint

Building for Production

npm run build
npm start

Deploying to Vercel (Making Your Prototype Public)

Vercel is a platform that hosts your prototype online, making it easy to share with your team.

Method 1: Deploy via GitHub (Recommended)

This method automatically deploys your prototype whenever you push changes to GitHub.

Step 1: Push Your Code to GitHub

  1. Create a new repository on GitHub
  2. 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

Step 2: Connect to Vercel

  1. Go to vercel.com and sign up/log in
  2. Click "Add New Project"
  3. Click "Import Git Repository"
  4. Select your GitHub repository
  5. 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

Step 3: Share Your Prototype

Once deployed, you'll get a URL like: https://your-project.vercel.app

Share this link with anyone to show them your prototype!

Method 2: Deploy via Vercel CLI

If you prefer to deploy from your terminal:

Step 1: Install Vercel CLI

npm install -g vercel

Step 2: Login to Vercel

vercel login

Step 3: Deploy

vercel

Follow 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!

Step 4: Deploy Updates

Whenever you want to deploy changes:

vercel --prod

Vercel Dashboard Features

After 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

Troubleshooting

"npm: command not found"

Solution: Node.js isn't installed. Follow the Prerequisites section.

"Port 3000 is already in use"

Solution: Another application is using port 3000.

  • Stop the other application, or
  • Use a different port:
    PORT=3001 npm run dev

"Module not found" errors

Solution: Dependencies aren't installed. Run:

npm install

Changes aren't showing up

Solution:

  1. Check the terminal for errors
  2. Try refreshing your browser with Cmd + Shift + R (Mac) or Ctrl + Shift + R (Windows)
  3. Stop the server (Ctrl + C) and restart it (npm run dev)

Build fails on Vercel

Solution:

  1. Check that your code works locally first (npm run build)
  2. Make sure all your files are committed to Git
  3. Check the build logs in the Vercel dashboard for specific errors

Need Help?


Tips for Designers

  1. Start with PrototypeScreen.tsx - This is where you'll spend most of your time
  2. Use the sidebar - Test different themes and settings without changing code
  3. Hot reload is your friend - Save your file and instantly see changes
  4. Don't worry about breaking things - You can always undo changes with Git
  5. Deploy early and often - Share your work-in-progress to get feedback quickly

Happy prototyping! 🎨✨

About

Prototype for Side by Side Working

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 61.5%
  • TypeScript 37.7%
  • JavaScript 0.8%