Giter Club home page Giter Club logo

Comments (12)

mitul45 avatar mitul45 commented on May 26, 2024

I'm not sure what do you mean by "try to upload this code on my website", can you provide some more details?

To use the app – clone the expense sheet, visit: https://mitul45.github.io/expense-manager/, and log in with your Google account.

from expense-manager.

nk932714 avatar nk932714 commented on May 26, 2024

I'm trying to host this repository on my website. Just for personal use. So what I've done to host this repo on my site.

  1. I just cloned this repo.
  2. changed the CLIENT_ID from init.js and put my own Google Sheets client ID
    No login button appears. Just showing loading gif

I just wanna know that can i host this (https://mitul45.github.io/expense-manager/)[https://mitul45.github.io/expense-manager/] on my website too ?

from expense-manager.

mitul45 avatar mitul45 commented on May 26, 2024

Ideally, that should be sufficient, are you getting any errors on the console?

from expense-manager.

nk932714 avatar nk932714 commented on May 26, 2024

i think problem is here.

image

from expense-manager.

nk932714 avatar nk932714 commented on May 26, 2024

image

from expense-manager.

wasi0013 avatar wasi0013 commented on May 26, 2024

Did you find a solution to this? @nk932714

I'm having the same issue:
It shows not a valid origin:

{
    error: "idpiframe_initialization_failed", 
    details: "Not a valid origin for the client: https://wasi001…itelist this origin for your project's client ID."
}

from expense-manager.

nk932714 avatar nk932714 commented on May 26, 2024

nope i haven't find any solution for this. @wasi0013

from expense-manager.

cirio avatar cirio commented on May 26, 2024

What's the command to build the project? Where is the output to upload on my host?
I changed CLIENT_ID in init.js and start index.html, but I've the same issue of others users.

from expense-manager.

mitul45 avatar mitul45 commented on May 26, 2024

Hey everyone, sorry for the long delay in response.

So as I understand, you want to deploy this to some other static server, right? It should be doable by just copying everything from here and changing the CLIENT_ID in init.js. There is no build step it's all vanilla HTML/JS/CSS.

@nk932714 where did you get CLIENT_ID from? Also, note – it's not same as the Sheet ID.

from expense-manager.

cirio avatar cirio commented on May 26, 2024

@mitul45 It's ok, it's working

@wasi0013 have you add your hosting site in your allowed list for your project? You can do in google developer console. Also remember to add API to google Drive

from expense-manager.

MeenachiSundaram avatar MeenachiSundaram commented on May 26, 2024

@cirio @mitul45

  1. Can you please explain about CLIENT_ID, Where i can get that if it is not Sheet ID
  2. Where to add API to Google Drive ?
  3. What do you mean - "add your hosting site in your allowed list for your project"

from expense-manager.

cirio avatar cirio commented on May 26, 2024

@MeenachiSundaram :

  1. You can find CLIENT_ID in your google developer console. After creating a project, on the credential panel, you can take a new client id (LINK)
  1. At the same place, in your google developer console. On the API & service tab, you can add a Google Sheets API and Google Drive API.

  2. You can use Github or your custom domain as a hosting for your web site, so you need to add a new whished domain. (LINK)

let me know if I can help you

from expense-manager.

Related Issues (18)

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.