Giter VIP home page Giter VIP logo

google-photo-album's Introduction

google-photo-album

Upload photo to a Google Photo Album: after logged in to your Google account via OAUTH2, you will be able to upload some photos to an album.
Those photos will be resized to 1024x600 pixel and the file name will be impressed to the photo.

My target was to easily upload photos of trees and leafs to see them in my Google Nest Hub gallery.

Morover, this is a playground project to learn some basics of React and Lerna.
It is composed by two applications:

  • packages/frontend: a react application started with npx create-react-app frontend
  • packages/backend: a Fastify server to provide the APIs to edit the images and send them to Google Photo

Run

npm run install:all # will install all the packages
npm run start:local # run it locally
# these scripts hide lerna, because I like to use npm to manage my projects

By default you can check the site at http://localhost:3003/

If you are not logged in you will see:

login

After the login you will be able to use the application:

doit

Auth to Google

In order to let it works, you need to configure the packages\backend\nest-api-credentials.json file with your own credentials that you can get from the Google Cloud Console following these instructions.

An example:

{
  "web": {
    "client_id": "secret",
    "project_id": "your-project-id",
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://oauth2.googleapis.com/token",
    "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
    "client_secret": "very-secret",
    "javascript_origins": [
      "http://localhost:3003"
    ]
  }
}

Disclaimer

This is a learning project, it is not intended for production at all. Feel free to play with it.

google-photo-album's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

volkanalb

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.