Giter Club home page Giter Club logo

todoapp's Introduction

Hi there πŸ‘‹

🏒 I’m currently working as a CEO and CTO in company named MTechZilla.

Sharvin's GitHub stats

πŸ’¬ You can ask me about:

  • JavaScript
  • TypeScript
  • React
  • NextJS
  • StoryBook
  • ExpressJS
  • Serverless
  • AWS
  • Firebase
  • Supabase
  • Stripe

πŸ€” If want to collaborate, you can reach out to me.

πŸ“« How to reach me:

🌏 Go through my portfolio to know more about me.

todoapp's People

Contributors

sharvin26 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

todoapp's Issues

I got an error "Failed to compile" Module not found

Steps:

  1. clone the project
  2. cd views
  3. yarn install & start
  4. It shows on the terminal

./src/pages/home.js
Module not found: Can't resolve '@material-ui/icons/AccountBox' in '/Users/macbookpro/Downloads/chrome download/TodoApp-master/view/src/pages'

So how to run this project? Thank you!

Unable to resolve error [ERR_PACKAGE_PATH_NOT_EXPORTED]: pls help

While added users.js ended up in error.

⚠   Your requested "node" version "14" doesn't match your global version "16"
i  functions: Watching "/Users/sumit/Desktop/src/firebase/functions" for Cloud Functions...
⚠  functions: The Cloud Firestore emulator is not running, so calls to Firestore will affect production.
⚠  Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/sumit/Desktop/src/firebase/node_modules/firebase/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:413:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:652:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (/Users/sumit/Desktop/src/firebase/functions/APIs/users.js:6:18)
⚠  We were unable to load your functions code. (see above)

I'm following code from https://www.freecodecamp.org/news/how-to-build-a-todo-application-using-reactjs-and-firebase/

Pls help!

Firebase Firestore empty result

In the first section of the tutorial specifically in the Firebase Firestore when i try to deploy I get an empty result with [ ] or { }

Error: Your API key is invalid, please check you have copied it correctly.

I copied the config from my settings and received the error, spent quite a lot of time researching the issue and could not find a resolution, so I started over completely with a new project and a new directory, (the first one I accidentally moved the node_modules to the functions folder and deleted them and restored them it was a whole thing) and I got to the same step and receive the same error when POSTing to the /api/login route
Error: Your API key is invalid, please check you have copied it correctly.

this is the step when you test the login for the first user created in firebase in section 2

not sure what could be causing it, but maybe you have some insight, thank you

Avoid token expiration

Is there a way to refresh token on backend? I need this because token expires every hour. I found refreshToken property in user, but idk what i can do with it.

General Enquiry

Hello sharvin thanks for the fantastic tutorial on freecodecamp
I'm currently trying to follow your tutorial and i'm stuck on upload profile image segment.

I have a few questions

  1. How do you obtain the bearer token? I tried finding online but couldn't find anything
    Were you referring to the token after login? If so I tried that but gotten the error
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<title>Error</title>
</head>

<body>
	<pre>Cannot GET /todoapp-58ce1/us-central1/api/user/image</pre>
</body>

</html>
  1. Why are we doing a get method on a post route?
    app.post('/user/image', auth, uploadProfilePhoto);

  2. Do you think you can clarify the section of the tutorial on uploading images!
    Thanks for the help

Using both Firebase and Firebase ADMIN sdk in functions

Hi,

First of all, I wanna say great project!

I was reading about firebase sdk and it seems that it is intended to be used on the frontend of the app. Is there any cons using both admin and normal firebase sdk on the functions server?

Since I intend to use it with redux as well, I want to know which way is the best: like yours, and use a simple reducer for auth state, or use signIn + react-redux-firebase on the frontend.

Thanks and keep up the good work! :)

Getting 404 POST http://localhost:3000/api/login 404 (Not Found)

I've just finished with Step 2: Login Form,

When I try to login with credentials I'm presented with POST http://localhost:3000/api/login 404 (Not Found)

I did a Firebase serve and is working fine with both Postman and when I change the proxy to http://localhost:5000/<my-app-id>/us-central1/api without issue, so I don't think there is an issue with copy pasting incorrect information. Is there something more I need to be doing when trying to use the Firestore functions URL?

"proxy": "https://us-central1-<my-app-id>.cloudfunctions.net/api"

Edit: Also noticed that the 404's are being logged when I check under the Functions area (see image)
Screen Shot 2021-04-28 at 1 22 08 PM

is firebase use is paid plan.

the cloud deployment you have used, Is it paid firebase plan?
i was going line by line through your freecodecamp tutorial. it is showing for cloud deployment pay as go plan is required.

How to deploy it?

When I run npm run build and uploads the file to my FTP and attempts to login I get the following error:

Error: Request failed with status code 404
    at e.exports (createError.js:16)
    at e.exports (settle.js:17)
    at XMLHttpRequest.p.onreadystatechange (xhr.js:62)

xhr.js:177 POST http://MyDomain/login 404 (Not Found)

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.