All Projects → TeXmeijin → vite-react-ts-tailwind-firebase-starter

TeXmeijin / vite-react-ts-tailwind-firebase-starter

Licence: other
Starter using Vite + React + TypeScript + Tailwind CSS. And already set up Firebase(v9), Prettier and ESLint.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to vite-react-ts-tailwind-firebase-starter

reactjs-vite-tailwindcss-boilerplate
ReactJS + Vite boilerplate to be used with Tailwindcss.
Stars: ✭ 103 (-4.63%)
Mutual labels:  eslint, prettier, tailwindcss, vite
awesome-vue-boilerplate
😍 Awesome Vue Boilerplate 🥳 Vue 🥰 Vuex, vuex-pathify 🤗 element-ui 🤲 tailwindcss
Stars: ✭ 60 (-44.44%)
Mutual labels:  eslint, prettier, tailwindcss
next-pwa-template
Next.js progressive web app template
Stars: ✭ 266 (+146.3%)
Mutual labels:  eslint, prettier, tailwindcss
website
Personal website and blog built with Next.js, Preact, MDX, Tailwind CSS and hosted on Vercel.
Stars: ✭ 17 (-84.26%)
Mutual labels:  eslint, prettier, tailwindcss
eslint-plugin-tailwind
ESLint rules for Tailwind CSS
Stars: ✭ 97 (-10.19%)
Mutual labels:  eslint, tailwind, tailwindcss
OSAPI
👋 OSAPI 是依靠通用性后台管理平台搭建的API管理平台,基于 vue3、Nestjs 技术栈实现,包含 RBAC 角色权限模块、数据展示、编辑等模块。
Stars: ✭ 32 (-70.37%)
Mutual labels:  eslint, prettier, vite
next.js-tailwindcss-template
Opinionated Next.js and TailwindCSS template.
Stars: ✭ 15 (-86.11%)
Mutual labels:  eslint, prettier, tailwindcss
fullstack-template
This is a template repository to get up and running quickly with Vite, React, Jest, Express Docker, and Github Actions for CI/CD.
Stars: ✭ 14 (-87.04%)
Mutual labels:  eslint, tailwindcss, vite
gatsby-starter-antoine
My opinionated Gatsby.js starter
Stars: ✭ 17 (-84.26%)
Mutual labels:  eslint, prettier
coc-tailwind-intellisense
Coc.nvim extension for Tailwind CSS IntelliSense
Stars: ✭ 117 (+8.33%)
Mutual labels:  tailwind, tailwindcss
vite-plugin-checker
💬 Vite plugin that provide checks of TypeScript, ESLint, vue-tsc, and more.
Stars: ✭ 338 (+212.96%)
Mutual labels:  eslint, vite
hugo-starter-tailwind-basic
A basic and simple to set up Hugo with TailwindCSS starter project.
Stars: ✭ 80 (-25.93%)
Mutual labels:  tailwind, tailwindcss
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (-49.07%)
Mutual labels:  eslint, prettier
eslint-config-adjunct
A reasonable collection of plugins to use alongside your main esLint configuration
Stars: ✭ 39 (-63.89%)
Mutual labels:  eslint, prettier
gridsome-starter-liebling
Gridsome starter based on the Liebling theme for Ghost. Content is added via markdown, while Tailwind CSS is used for the layout/styling.
Stars: ✭ 21 (-80.56%)
Mutual labels:  tailwind, tailwindcss
react-heroicons
Heroicons as React components
Stars: ✭ 39 (-63.89%)
Mutual labels:  tailwind, tailwindcss
EddieHubCommunity.github.io
Information about our community
Stars: ✭ 88 (-18.52%)
Mutual labels:  tailwind, tailwindcss
tailwindcss-landing-gradients
A landing page made with tailwindcss and the new Gradient feature.
Stars: ✭ 41 (-62.04%)
Mutual labels:  tailwind, tailwindcss
nextjs-baseweb
Slightly opinionated scaffold of Next.js and Base Web.
Stars: ✭ 46 (-57.41%)
Mutual labels:  eslint, prettier
react-antd-low-code
简易版 react 低代码平台
Stars: ✭ 45 (-58.33%)
Mutual labels:  tailwindcss, vite

vite-react-ts-tailwind-starter

Starter using Vite + React + TypeScript + Tailwind with Firebase.

Motivation

Improve building your faster prototyping by using Vite, TypeScript, React, TailwindCSS, Firebase.

This starter uses following libraries:

  • Vite
  • React
    • React Router
  • TypeScript
  • Tailwind CSS
    • daisyUI
  • Firebase(v9, modular)
  • ESLint
  • Prettier

Set up

mv .env.local.example .env.local
yarn
yarn dev

Firebase

If you DO NOT use Firebase, you should do:

  • Delete the Firebase-related code: you check Main.tsx, SignInButton.tsx, SignOutButton.tsx.
  • And then delete src/lib/firebase.ts
  • Run yarn remove firebase
  • Remove VITE_FIREBASE_* env values from .env.local

If you want to use Firebase, you should do:

Vite

Vite is a fast frontend build tool. According to the README, it consists of two major parts:

  • A dev server that serves your source files over native ES modules, with rich built-in features and astonishingly fast Hot Module Replacement (HMR).
  • A build command that bundles your code with Rollup, pre-configured to output highly optimized static assets for production.

React

React is a JavaScript library for building user interfaces.

Due to its awesome renderer system, there are many React Renderor. So React can be not used only Web, for example, used by React Native.

Let's dive into React and Vite can use with React.

TypeScript

TypeScript is a superset of JavaScript. It is just one of NPM library, but it provides an original compiler.

When you use TypeScript with React, you can write JSX with TypeScript, called TSX. Then you can develop views written by Type-Safe template.

Tailwind CSS

Tailwind CSS is modern utility-first CSS framework. It provides many CSS rules, but these are purged when production builds. So developers do not worry about CSS asset size for performance optimization.

In VSCode, I recommend to use intellisense extension.

Frequently, React developers are worried about how to write CSS in TSX(JSX) template. You must choose from CSS Modules, styled-components, linaria, and so on. Additionally, CSS architecture is difficult about scoping, e.g. BEM, FLOCSS.

When you decide to use Tailwind, you only write utility-first CSS classes, you don't have to worry about them!

daisyUI

daisyUI is Tailwind CSS Components library.

It prepares components CSS classes such as 'btn'. If you provide 'btn' class to <button> element, then there should be placed completely designed button.

If you don't want to use it, just remove the package and remove config in tailwind.config.js.

Firebase

Firebase is a PaaS that makes us create hi-quality apps so easy and so fast.

This library is not suitable for everyone, but I think it is one of the best libraries for prototyping. Therefore, I have added it to this repository.

The Firebase js SDK has become very useful in version 9, with optimizations that greatly reduce bundle size.

How to Use

Please look at firebase.ts.

There you will find a set of utility functions to manipulate Firebase for the environment in which the Emulator is used.

Formatter and Linter

Already set up ESLint and Prettier. You can customize the rules.

NOTICE: The template does not use eslint-plugin-prettier and prettier-eslint. So I recommend that running commands individually. e.g. prettier && eslint.

Please read: https://prettier.io/docs/en/integrating-with-linters.html.

ToDo


Support me!

Buy Me A Coffee

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].