Git Product home page Git Product logo

createthrive / react-firebase-admin Goto Github PK

View Code? Open in Web Editor NEW
412.0 11.0 96.0 4.12 MB

React βš›οΈ starter kit with Firebase πŸ”₯ and Bulma for setting up an admin dashboard - Highly scalable, PWA, Serverless

Home Page: https://docs.react-firebase.com

License: MIT License

JavaScript 91.06% HTML 1.20% CSS 1.07% TypeScript 4.61% Shell 0.26% SCSS 1.80%
react redux firebase bulma pwa offline routing responsive cloud-functions serverless boilerplate starter-kit template typescript firebase-admin admin-dashboard workflows realtime-database firebase-dashboard firebase-account

react-firebase-admin's Introduction

React Firebase Admin βš›οΈ πŸš€

ci license: MIT

Boilerplate with React βš›οΈ and Firebase πŸ”₯designed to quickly spin up a fully functional admin dashboard with authentication, authorization, Realtime Database / Firestore, built-in CI/CD, file upload and more. We're using up to date industry standards and next-gen technologies like React (with hooks), redux, bulma, sass, webpack, routing and a serverless architecture.

Boilerplate - Users page


Table of Contents


This project is using a customized version ported into React of the Admin Dashboard Template made by Viktor Kuzhelny.

What is this?

React Firebase Admin is our in-house admin dashboard boilerplate, used in many of our software projects here at CreateThrive. After months of hard work, we decided to make it public and support the open source community.

Why should I use it?

  • This project was bootstrapped with CRA (Create React App), this means it comes with all the good features we all know and love such as built-in scripts, to make our app a PWA (Progressive Web App) and much more!.
  • It is customizable.
  • It uses Firebase.
  • It has all the basic features you want in your app.
  • It is easy to use.

Features

  • Bulma CSS framework (Mobile friendly πŸ”₯)
  • Redux implementation
  • Firebase/Redux implementation
  • Authentication & authorization
  • Pick between Realtime Database and Firestore
  • Create/modify/delete users
  • Automatic email invitation to new users
  • Image uploading
  • Change/Reset Password built into the dasbhoard.
  • User filtering and search
  • Built-in CI (Continous integration)
  • Built-in CD (Continous deployment)
  • PWA ready thanks to CRA and Firebase
  • Multi-tenancy
  • Internationalization (English/Spanish)
  • Ability to choose between Firebase Realtime Database or Firestore

Tech Stack

Core

  • Create React App (β˜… 76.5k) this project was bootstrapped with create react app (see user guide).
  • Bulma (β˜… 38.7k) CSS framework to reduce development time and have a nice UI.
  • Redux (β˜… 52.4k) for in-app state management (see docs).
  • React-redux (β˜… 19k) official react bindings for redux (see docs).
  • Redux-act (β˜… 1.4k) opinionated library to create actions and reducers.
  • Redux-thunk (β˜… 14.1k) redux middleware for asynchronous actions.
  • Redux-persist (β˜… 9.8k) persists store state between sessions.
  • React-redux-toastr (β˜… 703) a toastr message implemented with Redux.
  • React-router (β˜… 39.6k) declarative routing for React.
  • Prop-Types (β˜… 3.4k) typechecking for react component props.
  • Classnames (β˜… 11.9k) a simple javascript utility for conditionally joining classNames together.
  • React-datepicker (β˜… 4.5k) a simple and reusable datepicker component for React.
  • React-table (β˜… 9.6k) hooks for building fast and extendable tables and datagrids for React.
  • React-spinners (β˜… 1.2k) a collection of loading spinner components for React.
  • Firebase for serverless architecture - CDN Hosting, Realtime Database, Authentication, Storage and Cloud Functions (see docs).
  • FirebaseUI-web-react (β˜… 732) social media authentication library.
  • Format.js (β˜… 11.7k) libraries for internationalization (see docs).
  • date-fns (β˜… 22.3k) date utility library (see docs).
  • cross-env (β˜… 4.9k) run scripts that set and use environment variables across platforms (see docs).
  • React Hook Form (β˜… 14.6k) Performant, flexible and extensible forms with easy to use validation.
  • yup (β˜… 11k) schema builder for value parsing and validation.
  • Inquirer (β˜… 12.2k) A collection of common interactive command line user interfaces (see docs).

Unit Testing

Linting

  • ESLint (β˜… 15.9k) configured to follow the coding style of Airbnb.
  • Prettier (β˜… 35.5k) as code formatter.
  • Lint-staged (β˜… 6.5k) run linters on git staged files.

Cloud functions

  • Firebase-admin (β˜… 790) Firebase Admin Node.js SDK.
  • Firebase-functions (β˜… 658) Firebase SDK for Cloud Functions.
  • Typescript (β˜… 61.1k) TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
  • TSlint (β˜… 5.8k) An extensible linter for the TypeScript language.
  • Firebase-function-tools (β˜… 780) a tool for naming and loading our Cloud Functions.
  • Glob (β˜… 6.2k) glob functionality for Node.js.
  • Camelcase (β˜… 423) convert a dash/dot/underscore/space separated string to camelCase.
  • Resize Image (β˜… 372) Firebase Extension to create resized versions of images uploaded to Cloud Storage.

Unit Testing

  • Firebase-functions-test (β˜… 117) unit testing library for Cloud Functions for Firebase.
  • Mocha (β˜… 19.4k) simple, flexible, fun javascript test framework for node.js & the browser.
  • Chai (β˜… 6.8k) BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
  • Chai-as-promised (β˜… 1.4k) Extends Chai with assertions about promises.
  • Ts-node (β˜… 7k) TypeScript execution and REPL for node.js, with source map support.

Prerequisites

You also need to be familiar with HTML, CSS, SASS, JavaScript (ES2015) and React with React Hooks.

Documentation

Demo

For requesting access to the demo site please contact us.

Contributors

We'd like to thank these awesome people who made this whole thing happen:

License

This project is licensed under the MIT license, Copyright (c) 2020 CreateThrive. For more information see LICENSE.md.

react-firebase-admin's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jfocco avatar mateokruk avatar pipisasa avatar topofgr avatar tpiaggio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-firebase-admin's Issues

Table component PropTypes

Is your feature request related to a problem? Please describe.
We want the Table component to be as reusable as possible. At the moment in this component we have a PropType for the data prop that's specific for a Table component with the columns for users.

Describe the solution you'd like
We should investigate a bit further into PropTypes and see if we can have a more general type checking for the data prop. We should not use the PropType.any because it's deprecated.

Describe alternatives you've considered
If a general type check is not available we should remove it.

Additional context
Typechecking With PropTypes

Firebase init fails

Hi guys,

I have a folder structured like this:
/business
/customer
/admin (the react-firebase-admin cloned repository)
.firebaserc
firebase.json

I created those firebase files for hosting my customer and business apps, they use the same project,

When I try firebase init in my /admin directory, I get the error .firebaserc already has a default project, using react-firebase-admin-eeac2.

I want to keep those firebase files to continue handling my deploys in this way, what can I do ?

Thank you in advance,
Hope you guys can help me ❀️

  • OS: MacOS BigSur

build failing lots of deprecated dependencies.

Describe the bug
received a 13k+ long error log file so I cant identify exactly what the issue was.

To Reproduce
I followed all steps in documentation and came up on the error when running 'npm run setup-admin-dashboard.

Expected behavior
Expected dependencies to install

Desktop (please complete the following information):

  • OS: OSX Big sur

Additional context
using node v18.4.0
npm 8.12.1

Email disappears when updating profile

Describe the bug
When the users update any information of it's profile the user is removed from the local state but it remains in the database.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Profile'
  2. Click on 'Submit' (Update profile card)
  3. Go to 'Home'
  4. Go to 'Profile' again
  5. You can see that the email is not showing up

Expected behavior
After a user updates its personal information the email attribute should remain untouched.

Screenshots
bug-1

Documentation for components

The principal problem with using this template is the lack of documentation about what components do, this could have a lot more starts if the components have at least what props are expected or minimal use of them.

Build command appears not creating manifest.json file

Hi :)

I used your wonderful boilerplate for a project. Everything works perfectly on localhost. On production mode, I've got an error in the browser console:

manifest.json:1 Manifest: Line: 1, column: 5, Unexpected data after root element.
The attempt to bind "/%PUBLIC_URL%/manifest.json" in the workspace failed as this URI is malformed.
GET https://fake-appp-url.web.app/%PUBLIC_URL%/manifest.json

I've checked locally and the command npm run build doesn't generate manifest.json.

Any ideas?

Thanks a lot! :)

Nodejs versions

Hey, I won't don't do this as a support ticket because I have decided to look beyond google firebase.

I just wanted to say that although the app is highly developed and I'm sure once it's up an running it's really powerful it's just that the using two different versions of nodejs causes issues. I accidentally built both parts with nodejs10 then went back and built the second part again with nodejs12.

I got the error:

./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss)
Error: Missing binding /home/chris/my-app/react-firebase-admin/node_modules/node-sass/vendor/linux-x64-72/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 12.x

Found bindings for the following environments:
  - Linux 64-bit with Node.js 10.x

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.

I'm sure I just did it wrong and it works fine if I follow every instruction closely but for now I am going to go back to trying postgres with a json table for my project. Bulma looks really good and I hope to work with it in the future. It's just that if I am going to work really hard to learn a system I might as well learn an open one so I will be looking for other solutions than google firebase.

Getting error.

After setup everything. I can see the login page on screen but after login, I am getting this error:

Unhandled Rejection (Error): Objects are not valid as a React child (found: Error: permission_denied at /users/1DfacH2cHqSUaxuQXO2QNvWeWII3: Client doesn't have permission to access the desired data.). If you meant to render a collection of children, use an array instead. in p (at Login/index.jsx:196) in form (at Login/index.jsx:122) in div (at Login/index.jsx:121) in div (at Login/index.jsx:110) in div (at Login/index.jsx:109) in div (at Login/index.jsx:108) in div (at Login/index.jsx:107) in div (at Login/index.jsx:106) in section (at Login/index.jsx:104) in Login (created by Context.Consumer) in Route (at Router/index.js:20) in Switch (at Router/index.js:19) in Router (created by BrowserRouter) in BrowserRouter (at Router/index.js:18) in RouterComponent (at src/index.js:32) in PersistGate (at src/index.js:21) in IntlProvider (at LanguageWrapper/index.js:24) in LanguageWrapper (at src/index.js:20) in Provider (at src/index.js:19)

npm run setup-firebase failing

I'm getting the following error:
C:\xxxxxxxxx\horizon\functions>npm run setup-firebase
npm ERR! Missing script: "setup-firebase"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

error when running setup-admin-dashboard

Describe the bug
I am getting the error "Error: No project active, but project aliases are available" at the part of the setup instructions that says to type in: npm run setup-admin-dashboard (Setting up the React frontend)
when I type in "npm -v" I get:
6.14.5

and
"node -v"
v14.4.0

`npm run setup-admin-dashboard

[email protected] setup-admin-dashboard /home/chris/my-app/react-firebase-admin/react-firebase-admin
npm install && npm build && firebase deploy

[email protected] install /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/husky
node husky install

husky > Setting up git hooks
husky > Done

[email protected] install /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/node-sass
node scripts/install.js

Cached binary found at /home/chris/.npm/node-sass/4.14.1/linux-x64-83_binding.node

@scarf/[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/@scarf/scarf
node ./report.js

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/babel-runtime/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/core-js-pure
node -e "try{require('./postinstall')}catch(e){}"

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/protobufjs
node scripts/postinstall

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/husky
opencollective-postinstall || exit 0

Thank you for using husky!
If you rely on this package, please consider supporting our open collective:

https://opencollective.com/husky/donate

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/node-sass
node scripts/build.js

Binary found at /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine

[email protected] postinstall /home/chris/my-app/react-firebase-admin/react-firebase-admin/node_modules/react-table
node ./scripts/postinstall.js || exit 0

πŸ‘©β€πŸ’» Use react-table at work?
πŸŽ‰ Consider sponsoring/supporting its development at:

https://github.com/sponsors/tannerlinsley

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 2024 packages from 978 contributors and audited 2037 packages in 104.794s

81 packages are looking for funding
run npm fund for details

found 1 low severity vulnerability
run npm audit fix to fix them, or npm audit for details
npm WARN build npm build called with no arguments. Did you mean to npm run-script build?

Error: No project active, but project aliases are available.

Run firebase use with one of these options:

production (react-firebase-admin-eeac2)
staging (react-firebase-admin-eeac2)
default (react-firebase-admin-eeac2)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup-admin-dashboard: npm install && npm build && firebase deploy
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] setup-admin-dashboard script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/chris/.npm/_logs/2020-06-17T12_12_38_970Z-debug.log
chris@reactcore:~/my-app/react-firebase-admin/react-firebase-admin$ `

To Reproduce
Steps to reproduce the behavior:
too many to list

Expected behavior
expected it to build but I know this almost never happens the first try

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Ubuntu 20.04

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
Any assistance is much appreciated. If I end up fixing it myself I will post what I did and close the ticket.

Add repo to documentation

Describe the bug
Great work! Reading your guide here: https://docs.react-firebase.com/getting-started#getting-started
You say that the first step is to clone your repo. But there's no link to the repo: https://github.com/CreateThrive/react-firebase-admin
(Took a while to find this repo, and also I got stuck in very similar projects on the way to find it here)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://docs.react-firebase.com/getting-started#getting-started
  2. On getting started, read "Clone repo"
  3. But you find no link to the repo

Messages in Spanish

Is your feature request related to a problem? Please describe.
While filling inputs when creating a new user or setting your password for the first time the success/error messages are still in Spanish.

Describe the solution you'd like
We should change those messages to English.

Additional context
This messages can be found on: src/utils/index.js more specifically in the inputValidations function.

How to overwrite react-firebase-admin's theme?

I see that there is a CSS file in src/assets/css/main.css. How do I overwrite it since it seems to have overwritten Bulma's variables? Preferably there is the Sass version of it for me to import and overwrite it.

I have tried to customize Bulma like so:

// custom.scss
@import 'bulma/sass/utilities/initial-variables.sass';
$primary: rgb(82, 84, 84);
@import 'bulma/bulma.sass';

and import it in index.js after src/assets/css/main.css but it caused styling error.

Error: Objects are not valid as a React child (found: Error: permission_denied at /users/acOx... Client doesn't have permission to access the desired data.)

Describe the bug

Hi I have follow the instructions carefully and every command has been run successfully. I get access to the login page but when I try to log in with the user and password I provided in the 'npm run setup-firebase' step I get the following error:

Error: Objects are not valid as a React child (found: Error: permission_denied at /users/acOxqVPkMfef9FFqDkXyqrAIVFt1: Client doesn't have permission to access the desired data.). If you meant to render a collection of children, use an array instead.
    in p (at Login/index.jsx:202)
    in form (at Login/index.jsx:128)
    in div (at Login/index.jsx:127)
    in div (at Login/index.jsx:116)
    in div (at Login/index.jsx:115)
    in div (at Login/index.jsx:114)
    in div (at Login/index.jsx:113)
    in div (at Login/index.jsx:112)
    in section (at Login/index.jsx:110)
    in Login (created by Context.Consumer)
    in Route (at Router/index.js:20)
    in Switch (at Router/index.js:19)
    in Router (created by BrowserRouter)
    in BrowserRouter (at Router/index.js:18)
    in RouterComponent (at src/index.js:32)
    in PersistGate (at src/index.js:21)
    in IntlProvider (at LanguageWrapper/index.js:24)
    in LanguageWrapper (at src/index.js:20)
    in Provider (at src/index.js:19)
throwOnInvalidObjectType
node_modules/react-dom/cjs/react-dom.development.js:13413
reconcileChildFibers
node_modules/react-dom/cjs/react-dom.development.js:14313
reconcileChildren
node_modules/react-dom/cjs/react-dom.development.js:16762
updateHostComponent
node_modules/react-dom/cjs/react-dom.development.js:17302
beginWork
node_modules/react-dom/cjs/react-dom.development.js:18627
callCallback
node_modules/react-dom/cjs/react-dom.development.js:188
invokeGuardedCallbackDev
node_modules/react-dom/cjs/react-dom.development.js:237
invokeGuardedCallback
node_modules/react-dom/cjs/react-dom.development.js:292
beginWork$1
node_modules/react-dom/cjs/react-dom.development.js:23203
performUnitOfWork
node_modules/react-dom/cjs/react-dom.development.js:22157
workLoopSync
node_modules/react-dom/cjs/react-dom.development.js:22130
performSyncWorkOnRoot
node_modules/react-dom/cjs/react-dom.development.js:21756
flushSyncCallbackQueueImpl/<
node_modules/react-dom/cjs/react-dom.development.js:11089
unstable_runWithPriority
node_modules/scheduler/cjs/scheduler.development.js:653
runWithPriority$1
node_modules/react-dom/cjs/react-dom.development.js:11039
flushSyncCallbackQueueImpl
node_modules/react-dom/cjs/react-dom.development.js:11084
flushSyncCallbackQueue
node_modules/react-dom/cjs/react-dom.development.js:11072
batchedUpdates$1
node_modules/react-dom/cjs/react-dom.development.js:21862
notify
node_modules/react-redux/es/utils/Subscription.js:19
notifyNestedSubs
node_modules/react-redux/es/utils/Subscription.js:92
handleChangeWrapper
node_modules/react-redux/es/utils/Subscription.js:97
dispatch
node_modules/redux/es/redux.js:222
createThunkMiddleware/</</<
node_modules/redux-thunk/es/index.js:11
dispatch
node_modules/redux/es/redux.js:638
fetchUserData/<
src/state/actions/auth.js:113

  110 |   ).val();
  111 | } catch (error) {
  112 |   dispatch(logout());
> 113 |   return dispatch(AUTH_FETCH_USER_DATA_FAIL({ error }));
      | ^  114 | }
  115 | 
  116 | if (!user) {

Screenshots
1
2

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser Firefox
  • Version 77.0.1 (64-bit)

docs.react-firebase.com domain not working

Describe the bug
A clear and concise description of what the bug is.
The documentation website and the live preview website of react-firebase.com is not working, where can we find the documentation for react admin firebase ?
To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://docs.react-firebase.com/'
  2. See error

Expected behavior
Documentation website is not loading

"Unable to resolve dependency tree" while installing dependencies

Describe the bug
Project does not work as expected out of the box when running npm install - issues with React version dependencies occur:

PS J:\xxx> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=15 <17" from [email protected]
npm ERR! node_modules/react-firebaseui
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Then, when trying to re-run with npm install --legacy-peer-deps, there are further issues with node-gyp (msbuild tools and python versions) which have led me down quite the rabbithole:

npm ERR! gyp verb check python checking for Python executable "C:/Python2.7/python.exe" in the PATH
npm ERR! gyp verb `which` failed Error: not found: C:/Python2.7/python.exe

Python2.7 is installed at that location and is in my path, including under NODE_GYP_FORCE_PYTHON:
image

Which I know works, as I have been following the instructions here (https://stackoverflow.com/a/60471089) for remedying this node-gyp issue, and upon running node-gyp configure as part of this test I am told to upgrade from Python2.7 - so I am unsure why when running npm install --legacy-peer-deps with this project that Python 2.7 cannot be found.

S J:\xxx\hello_module>  node-gyp configure   
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! find Python 
gyp ERR! find Python checking Python explicitly set from NODE_GYP_FORCE_PYTHON
gyp ERR! find Python - process.env.NODE_GYP_FORCE_PYTHON is "C:\Python27\python.exe"
gyp ERR! find Python - executable path is "C:\Python27\python.exe"
gyp ERR! find Python - version is "2.7.18"
gyp ERR! find Python - version is 2.7.18 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED

Any help would be appreciated.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo
  2. Follow the documentation steps for 'Installing Dependencies' https://docs.react-firebase.com/getting-started#installing-dependencies
  3. Run npm install
  4. See error

Expected behavior
The dependencies install as expected.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10

Cant run npm run setup-firebase

Describe the bug
it says that it doesnt find the script to run it

To Reproduce
Steps to reproduce the behavior:
I just followed the readme and im getting the error

Expected behavior
like the readme would say to enter a certain path after

Screenshots
image
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Remove 'delete' and 'edit' button for admin users in the table

Right now an admin user can edit or delete any user in the database. We shouldn't let an admin user edit or delete other admin users, so we should hide that buttons in case the the user is an admin. We should also verify that on the database rules

Importing Bulma css multiple times

Describe the bug
We're importing the css manually in the index.js file. This is not necessary because the Bulma package in our package.json file already imports it.

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.