Skip to content

Ionixx-Technologies/diff-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js React Starter Template

A modern, production-ready Next.js starter template with TypeScript, styled-components, and a comprehensive component library.

Features

  • Next.js 15+ with TypeScript
  • Styled Components for styling
  • Pre-built reusable components (Button, Modal, TextInput, Tabs, Spinner)
  • Custom hooks library
  • Theme system
  • Jest testing setup
  • ESLint + Prettier configuration
  • Organized folder structure

Getting Started

Prerequisites

  • Node.js 18+
  • Yarn 4.7.0 or npm

Installation

  1. Clone the repository:
git clone <repository-url>
cd framework-template
  1. Install dependencies:
yarn install
# or
npm install
  1. Create environment variables file:
cp .env.example .env.local
  1. Run the development server:
yarn dev
# or
npm run dev

Open http://localhost:3000 in your browser to see the result.

Project Structure

framework-template/
├── public/              # Static assets
├── src/
│   ├── components/      # Reusable UI components
│   ├── hooks/          # Custom React hooks
│   ├── layouts/        # Layout components
│   ├── pages/          # Next.js pages
│   │   └── api/        # API routes
│   ├── services/       # API services and external integrations
│   ├── utils/          # Utility functions
│   ├── constants/      # App constants and configuration
│   ├── types/          # TypeScript type definitions
│   ├── lib/            # Shared libraries
│   └── theme/          # Theme configuration
├── .eslintrc.js        # ESLint configuration
├── .prettierrc         # Prettier configuration
├── jest.config.js      # Jest configuration
├── next.config.ts      # Next.js configuration
└── tsconfig.json       # TypeScript configuration

Available Scripts

  • yarn dev - Start development server
  • yarn build - Build for production
  • yarn start - Start production server
  • yarn lint - Run ESLint
  • yarn test - Run tests

Components

Button

import { Button } from '@/components';

<Button variant="primary" onClick={handleClick}>
  Click me
</Button>

Modal

import { Modal } from '@/components';

<Modal isOpen={isOpen} onClose={handleClose}>
  Modal content
</Modal>

TextInput

import { TextInput } from '@/components';

<TextInput
  placeholder="Enter text..."
  value={value}
  onChange={handleChange}
/>

Tabs

import { Tabs } from '@/components';

<Tabs tabs={[
  { label: 'Tab 1', content: <div>Content 1</div> },
  { label: 'Tab 2', content: <div>Content 2</div> }
]} />

Spinner

import { Spinner } from '@/components';

<Spinner size="large" />

Styling

This project uses styled-components for styling. Theme configuration can be found in src/theme/.

Testing

Run tests with:

yarn test

Learn More

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages