Skip to content

Starter template based on Vite with React, React-Router, Tailwind, Flowbite and a small Starter Page

Notifications You must be signed in to change notification settings

AndreasKarz/ReactStarterTemplate

Repository files navigation

Complete React Starter Template

Starter template based on Vite incl. all technologies you need. If you work with Visual Studio Code, install the Tailwind CSS IntelliSense extension for a better experience.

Base

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects.

In this template we use Vite not just as build tool. In the index.html you will see, how the environment variables are injected into the index.html file. This is done by the vite-plugin-html-env

Learn Vite – Frontend Build Tool Course

React lets you build user interfaces out of individual pieces called components. You should already have an Know-how of React, Typescript and Javascript for this template. If not, you can learn it here React with TypeScript Crash Course.

Most Beginner React Developers Do This Wrong

This One Line Of Code Catches React Bugs For You

A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup. A special section ist theming your website. To work with Visual Studio Code, the Editor Setup is important!

IMPORTANT => Translating a Custom Design System to Tailwind CSS

Designing with Tailwind CSS: Composing Utilities with @apply

Tailwind extensions

A list of component templates and plugins:

Extensions

General

With this Vite plugin you can inject environment variables into static files like index.html.

LocalForage (comming soon)

localForage is a JavaScript library that improves the offline experience of your web app by using an asynchronous data store with a simple, localStorage-like API. It allows developers to store many types of data instead of just strings.

Axios is a promise-based HTTP Client for node.js and the browser. It is isomorphic (= it can run in the browser and nodejs with the same codebase).

How to access/fetch the local JSON file to React

Lodash (comming soon)

Lodash is a JavaScript library that helps programmers write more concise and maintainable JavaScript. It is a collection of methods that helps perform common tasks with arrays, numbers, objects, strings, etc.

React

React Router enables client side routing. Client side routing allows your app to update the URL from a link click without making another request for another document from the server.

There is a good intrudoction on YouTube.

react-i18next is a powerful internationalization framework for React / React Native which is based on i18next.

i18next Crash Course

Because of the nature of single page applications (SPAs), modifying metadata in React apps can be tricky without using a helper library. Lucky for us, that library already exists – and it's called React Helmet.

React hook library, ready to use, written in Typescript.

There is also a Free React Hooks Course

Performant and powerful data synchronization for React

Over 100,000 open source vector icons as a React Component.

Tipps & Tricks

Organize imports in Visual Studio Code

Shift + Alt + O

Helpers

Layout & Design

Responsively App

Master the Art of Crafting Responsive Web Apps like a Pro!

CSS Layout Generator

SEO

Allgemein

Structured routes Create and deploy sitemap

It's a simple guide to HTML

Structured data

Generate structured data Schema markup generator Markup helper Benefits

Tools

Milanote is an easy-to-use tool to organize your ideas and projects into visual boards. Add notes, images, links and files, organize them visually and share them with your team.

Milanote tutorial for beginners (building a second brain)

Canva is a graphic design platform for creating visual content. The software works according to the drag-and-drop principle and already contains templates, images, fonts and graphic elements that can be used by the users. The use is basically free of charge, but Canva also offers the paid extensions "Pro" and "Enterprise", with which further functions and content can be unlocked.

Extend creativity with Canva Developers

Canva on YouTube

Figma is a collaborative software for prototyping in the field of UX or UI design. It is mainly used as a web application.

Introducing Figma: A Beginners Tutorial (2023 UI UX Design)

Channels to follow

Tailwind Labs

Web Dev Simplified (React)

Kevin Powell (CSS)

[TODO]