Skip to content

rishmanjot90-stack/rishman-web

Repository files navigation

web-page

A modern web application built using Next.js, TypeScript, and pnpm.


🚀 Tech Stack

  • Next.js
  • TypeScript
  • React
  • pnpm
  • Tailwind CSS (if applicable)

📦 Prerequisites

Before starting, install the following software:

Software Version
Node.js 18+
pnpm Latest
Git Latest

⚙️ Installation Guide

1. Clone Repository

git clone <your-repository-url>

Move into the project folder:

cd <project-folder>

2. Install Dependencies

pnpm install

or

pnpm i

🖥️ Development Setup

Run Development Server

pnpm dev

Application will run on:

http://localhost:3000

Open the URL in your browser.


🛠️ Production Build

To create a production build:

pnpm build

▶️ Start Production Server

pnpm start

📁 Project Structure

project-root/
│
├── app/                # App Router pages
├── components/         # Reusable components
├── public/             # Static assets
├── styles/             # Styling files
├── package.json
├── pnpm-lock.yaml
└── next.config.ts

✨ Development Guide

Edit Main Page

Modify:

app/page.tsx

Changes auto-refresh during development.


Create Components

Add reusable components inside:

components/

Example:

export default function Button() {
  return <button>Click Me</button>;
}

🎨 Styling

Global styles are usually located in:

app/globals.css

🔤 Font Optimization

This project uses:

  • next/font
  • Geist font family

Documentation:


📚 Useful Commands

Command Description
pnpm install Install dependencies
pnpm dev Run development server
pnpm build Create production build
pnpm start Start production server
pnpm lint Run ESLint

🌐 Deployment

Deploy on Vercel

  1. Push project to GitHub

  2. Open:

    https://vercel.com/new

  3. Import repository

  4. Click Deploy


🔧 Environment Variables

Create .env.local:

NEXT_PUBLIC_API_URL=http://localhost:3000/api

🧹 Clean Install

If dependencies break:

rm -rf node_modules
rm pnpm-lock.yaml
pnpm install

🚨 Common Issues

Port Already in Use

Run on another port:

pnpm dev -- -p 3001

📖 Learn More


📄 License

This project is licensed under your preferred license.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors