Skip to content
/ create-next-mobile Public template

Create Mobile Web Apps easier with this solution, which automatically handles layout, overflow, and responsiveness. You can fully focus on developing your app's features without worrying about mobile-specific design. This solution provides a base structure for Next.js, ensuring your web app looks and functions optimally on all mobile device.

Notifications You must be signed in to change notification settings

inact25/create-next-mobile

Repository files navigation

Create Next Mobile

This project is named Create Next Mobile and is built using Next.js, tailored specifically for mobile web app development. It leverages Atomic Design principles to structure components and ensure maintainability, scalability, and reusability. This project is set up with modern web technologies including TypeScript, Tailwind CSS, and PostCSS to provide a strong foundation for mobile-first applications.

Project Features

  • Next.js Framework: Utilizes Next.js for server-side rendering (SSR) and static site generation (SSG).
  • TypeScript: Provides static type checking to ensure the correctness of the application.
  • Tailwind CSS: Enables easy styling with a mobile-first design philosophy.
  • Atomic Design Principles: Components are organized based on Atoms, Molecules, and Organisms to promote reusability.
  • Mobile-First: This project is specifically designed to create mobile web applications with Next.js, focusing on mobile-specific layouts and performance optimizations.

Project Folder Structure

src/
├── app/
│   ├── favicon.ico              # Favicon for the application
│   ├── globals.css              # Global CSS styles
│   ├── layout.tsx               # Application layout file
│   ├── page.tsx                 # Main entry point of the app
│   └── fonts/                   # Font files used in the project
│       ├── GeistMonoVF.woff
│       └── GeistVF.woff
├── components/
│   ├── atoms/                   # Smallest, reusable components
│   │   ├── Content.tsx          # Handles content display
│   │   ├── Header.tsx           # Header component for the app
│   │   ├── Navbar.tsx           # Navbar for mobile navigation
│   │   └── Wrapper.tsx          # Wrapper for adding structure to sections
│   ├── layout/                  # Layout components
│   │   └── BaseLayout.tsx       # Base layout for all pages
│   ├── molecules/               # Combination of atoms
│   │   ├── MainHeader.tsx       # Header with navigation
│   │   ├── MainNav.tsx          # Mobile navigation component
│   │   └── MobileOnly.tsx       # Component for mobile-only features
│   └── organisms/               # Larger, reusable components
│       └── home/                # Organisms specific to the homepage
│           ├── Linklist.tsx     # List of links for navigation
│           ├── Logo.tsx         # App logo component
│           └── Title.tsx        # Title component for home page
├── .eslintrc.json               # ESLint configuration
├── mobile.config.ts             # Mobile-specific configuration for the project
├── next.config.mjs              # Next.js configuration
├── postcss.config.mjs           # PostCSS configuration
├── tailwind.config.ts           # Tailwind CSS configuration
├── tsconfig.json                # TypeScript configuration
├── README.md                    # Project documentation

Key Technologies

  • Next.js: A powerful React-based framework for building modern web applications with built-in SSR and SSG capabilities.
  • TypeScript: A superset of JavaScript that provides static typing, making the development process safer and more scalable.
  • Tailwind CSS: A utility-first CSS framework that allows you to rapidly build custom designs without leaving your HTML.
  • PostCSS: A tool to transform CSS with JavaScript plugins, enabling compatibility across different environments.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/create-next-mobile.git
  2. Navigate to the project directory:

    cd create-next-mobile
  3. Install the dependencies:

    npm install

Running the Project

To start the development server, use:

npm run dev

This will start the Next.js development server on http://localhost:3000.

Building for Production

To build the project for production:

npm run build

Customizing the Project

  • Atoms: Create small, reusable components like buttons, inputs, etc.
  • Molecules: Combine atoms to form more complex components.
  • Organisms: Use molecules and atoms together to create larger sections of the app.

License

This project is licensed under the MIT License.

About

Create Mobile Web Apps easier with this solution, which automatically handles layout, overflow, and responsiveness. You can fully focus on developing your app's features without worrying about mobile-specific design. This solution provides a base structure for Next.js, ensuring your web app looks and functions optimally on all mobile device.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published