GithubHelp home page GithubHelp logo

codepolyglot / react-firebase-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wataru-maeda/react-firebase-boilerplate

0.0 0.0 0.0 40.25 MB

create-react-app based firebase, react & redux pre-setup project

Home Page: https://react-firebase-boilerpla-ce757.web.app/

Shell 0.06% JavaScript 69.19% HTML 3.12% SCSS 27.63%

react-firebase-boilerplate's Introduction

React Firebase Boilerplate

About

We spend a large amount of time to setup a project; changing file structure, installing libraries, create reusable components and so on. The purpose of using the project is to minimize the redundant effort to setup a project from scratch. In the boilerplate, it contains only commonly-used libraries and the all setup done for you.

Require Package Version

  • Node: v16.x
  • Yarn: v1.22.x
  • Npm: v8.1.x

Yarn preferable. The deploy automation using yarn.

How to use

Step-1. Setup Firebase App

  1. Create firebase web app in firebase console
  2. Enable Authentication and turn on "Email/Password" option
  3. Enable Storage and update Rules
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if false;
    }

    match /users/{userId} {
      allow read, write : if request.auth.uid == userId;
		}
  }
}
  1. Enable Hosting

Step-2. Install firebase tools

  1. Global install firebase tools (skip if you done the step)
$  npm install -g firebase-tools
  1. Login to your firebase account (skip if you done the step)
$ firebase login

Step-3. Setup the Boilerplate Project

  1. Click "Use Template" to start or download the boilerplate from Download Zip button
  2. Open the project in the editor
  3. Go to firebase console again. Copy all API keys from (gear icon) -> Project Settings. Then paste in .env.development
  4. Replace project name with yours in .firebaserc
  5. Install packages with command: yarn install or npm install
  6. Start project with command: yarn start or npm run start

Available Scripts

Build storybook

$ yarn storybook
- or -
$ npm run storybook

Run Unit Test

$ yarn test
- or -
$ npm run test

Run Lint

$ yarn lint
- or -
$ npm run lint

Format Code

$ yarn format
- or -
$ npm run format

Analyze Bundle Size

$ yarn analyze
- or -
$ npm run analyze

Run Local Build Test

$ yarn build && firebase serve
- or -
$ npm build && firebase serve

Deploy Live

$ yarn build && firebase deploy --only hosting
- or -
$ npm build && firebase deploy --only hosting

Libraries

Database/hosting/authentication

Icons

Style

UI Components

Navigation

Store

SEO

Test

Dev

CI and Auto Deployment

Licence

This project is available under the MIT license. See the LICENSE file for more info.

react-firebase-boilerplate's People

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.