Skip to content

A set of React (TypeScript) UX components for Firebase database CRUD and cloud functions flow.

License

Notifications You must be signed in to change notification settings

PeaPodTechnologies/FirebaseMaterialUX

Repository files navigation

Firebase Material UX

A set of React (TypeScript) UX components for Firebase database CRUD and cloud functions flow.

Features

  • Firebase Database CRUD w/ State-Context Management
  • Firebase Cloud Functions Dynamic Conditional Flow (DCF)

Development

Requirements

  • Node.js npm: Guide
  • Global Dependencies: npm install -g node-gyp yarn react typescript

Project Initialization

  1. Install Yarn: yarn init; rm package-lock.json; yarn

  2. Create the app: yarn create next-app --typescript

  3. Add ESLint: npx eslint --init

  4. Add the following to eslint.json:

"extends" : [
    //...
    "prettier"
]
  1. Add and run prettier: yarn add --dev --exact prettier eslint-config-prettier; yarn prettier

  2. Create .prettierrc.json:

echo $'{
  "semi" : true,
  "singleQuote" : true,
  "useTabs": false
  "tabWidth" : 2,
  "printWidth" : 80,
  "trailingComma" : "es5",
  "bracketSpacing" : true,
  "arrowParens" : "always",
  "endOfLine" : "lf"

}'> .prettierrc.json
  1. Add the following to package.json/scripts{...}:
"scripts" : {
  // ...
  "eslint" : "eslint src/**",
  "prettier" : "prettier --write ."
}
  1. Install MaterialUI: yarn add @mui/material @emotion/react @emotion/styled @mui/icons-material

  2. Install Next.js: yarn add next

  3. Install PostCSS/Tailwind CSS: yarn add -D tailwindcss postcss autoprefixer

  4. Install Jest: yarn add -D jest jest-environment-jsdom @testing-library/react @testing-library/jest-dom; yarn create jest@latest

About

A set of React (TypeScript) UX components for Firebase database CRUD and cloud functions flow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published