Skip to content

App which will automatically build CV with markdown

License

Notifications You must be signed in to change notification settings

Palo-IT/CVFactory

Repository files navigation

Push to Google Drive Service

This service allows us to push files to Google Drive and make them available to the linked Google account (see below).

Linking Google account to access files

The push to Google Drive is made with a service created (via a Google account). This service's purpose is to make communication with Google APIs easier by handling authentication with a JSON file. Each file pushed to Google Drive is automatically created with associated permission to this service, thus not being accessible in the Drive user interface of the base email address (ex: [email protected]). To make that file visible in our account, it is mandatory to add a new permission to it with the Google account wanted. To achieve that, we update permissions of every file after pushing them to Google Drive. Permissions are updated with the email address mentioned in the config/config.json. PERMISSION_ADDRESS should be set to the email address that we want to give access to to the file.

Example of config.json file

{
  "PORT": 3000,
  "PERMISSION_ADDRESS": "[email protected]"
}

Creating the service & associated auth.json file

Tutorial - Enabling Google Drive APIs & creating auth.json file

The auth.json file should be placed at the root of the project.

Files

Files to be uploaded should be placed within a "files" folder at the root of the project.

APIs

  • POST /files/:fileName

Uploads a file to Google Drive

  • GET /files

Gets a list of the 20 most recent files uploaded

About

App which will automatically build CV with markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •