Giter Site home page Giter Site logo

yuryalencar / clean-frontend-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 119 KB

Sample of the frontend project using NextJS easy to understand and use.

License: MIT License

Shell 3.64% JavaScript 4.26% CSS 7.53% TypeScript 84.58%
eslint husky nextjs nextjs14 prettier template template-project typescript

clean-frontend-template's Introduction


Clean Frontend: A frontend template to build good solutions too easy.

This is a template for a frontend project built with TypeScript, Next.js, and Tailwind CSS.

Features

  • TypeScript: Type-safe JavaScript superset for building scalable applications.
  • Next.js: React framework for server-rendered applications with easy page-based routing.
  • Tailwind CSS: Utility-first CSS framework for quickly styling your applications.
  • Husky: Git hooks made easy to automate linting and other tasks.
  • ESLint: Pluggable JavaScript linter for identifying and fixing problems in code.
  • Git Commit Message Linter: Enforce consistent and meaningful commit messages.

Getting Started

  1. Clone this repository:
   git clone https://github.com/your-username/frontend-project-template.git
  1. Navigate into the project directory:
   cd clean-frontend-template
  1. Install dependencies:
   pnpm install # first option
   yarn install # second option
   npm install  # third option

Usage

Run the development server:

   pnpm dev     # first option
   yarn dev     # second option
   npm run dev  # third option

Linting and Formatting

This project includes ESLint for linting JavaScript and TypeScript files, Prettier for code formatting, and Husky to automatically run linting and formatting checks before committing your code.

To manually run linting:

   pnpm lint     # first option
   yarn lint     # second option
   npm run lint  # third option

Prettier is integrated into the linting process and will automatically format your code to adhere to the defined code style rules. However, you can also manually format your code using the following command:

   pnpm format     # first option
   yarn format     # second option
   npm run format  # third option

Commit Message Linting

This project enforces consistent and meaningful commit messages using Commitlint. Make sure to follow the conventional commit message format when committing changes.

Contributing

Feel free to contribute to this project by opening issues or submitting pull requests. Please follow the existing code style and conventions.

clean-frontend-template's People

Contributors

yuryalencar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.