/next-starter

My frontend next js project boilerplate with all the tools and react packages I could possibly need in various situations.

Primary LanguageJavaScript

🚀 Next Starter

A Next Js, Tailwind CSS, Material UI, & React Packages Starter Kit!

Github top language Github forks Github stars

Table of Contents

About

Next Starter is my frontend next js project boilerplate with all the tools and react packages I could possibly need in various situations from form validation, data fetching to styling.

I have included all the tools I use almost in every project, anyone can use this too to get started quickly without hustle of hunting and installing packages.

Tech Stack Used

The following tools were used in this frontend project:

  1. Next Js React Js Production Grade Framework

Used for frontend, cool stuff like server side rendering, and more!

  1. Tailwind CSS Utility Based CSS Framework

Used for utility level styling, and customization.

  1. Material Design React Components Framework By Google

Used for component level styling, tables and layouts.

  1. Headless UI A No brainer UI logic handler

Used for UI logic, and accessibility implementation.

  1. React Hook Form Best react form handler library

Used for form state handling and validation.

  1. Yup And Hook Form Resolvers Form Schema & regex validator

Used for validating user input against ideal formats.

  1. React Query Data fetching, caching and local storage handler

Used for fetching api data, cache it and other cool stuff.

  1. Axios Data fetching, for making api calls instead of fetch api.

Used for the actual api endpoint calling.

  1. React Icons Bringing all kinds of icon into our project

Only install this one package to acces fontawesome, bootstrap, and other icons and others.

  1. React Unicons Newish icons, not available in react icons yet!

Icons by icon scout are cool and modern, optional!

  1. React Reveal Do component entry transitions and animations

Used for transitions and animations based on observer api.

  1. Next Seo Handle your next js seo like a pro!

Used to replace next js's default seo handler.

  1. Recharts Visualize your data with charts.

Used to visualize data in pie charts, bar charts etc!

  1. Swiper Js Want to do some carousel or slider?

Use this one for carousel and slider.

  1. Sass In case you want to do write some custom css, sass is the way!

Used to add capabilities on top of css.

  1. Currency Formatter Format curreny with thousands seperator, etc.

Add comma, dot, and other seperators to your currency.

  1. Dotenv Prevent environment Variables and api tokens from getting exposed.

Do the process.env.NODE_ENV thing, and other things.

  1. React Recipe Get useful react custom hooks eg. useOnline, useLocalStorage, etc.

Get all hooks at your disposal.

  1. React Use Get useful react custom hooks eg. useOnline, useLocalStorage, and others missing in react recipe.

Get all hooks at your disposal.

Am still searching for best libraries to handle these

  • Loaders (Am thinking of halogen + react-typed),
  • Skeleton Loaders (...nothing yet),
  • Search Functionality (Search UI + Algolia),
  • Date & Timezone Handling (dfn or ???).

APIs

Design Guides & Inspiration

  • Dribble specifically for design inspirations,
  • Checklist Design my UX playbook,
  • Prime React See implementation ideas and inspiration from thier paywall locked components,
  • Icon Scout they just got realy nice stuff like 3d illustrations and lottie animations,

Getting Started

To have things set up and running is kind of easy, just clone the project to your machine and do yarn or npm install to install all packages and that's it, start minting your frontend. See below example.

# Clone this project
$ git clone https://github.com/Husseinkizz/next-starter

# Access
$ cd next-starter

# Install dependencies
$ yarn

# Run the project in development mode
$ yarn dev

# The server will initialize in the <http://localhost:3000>

Prerequisites

You only need to have Node Js installed on your machine and also yarn if that's what you use. You can always download and install node js from thier official website and to install yarn after installing node you can use the following command.

# Install yarn using npm
$ npm i yarn -g

Verdict

The tech stack used herein is just my personal preference and guided by my experience in past projects, you may suggest better ones or change things yourself. Feel free to contribute to this project if you have any suggestions or only install only those tech you like in the stack. Thanks!

Made with ❤️ by Hussein Kizz

 

Back to top