amlan-roy / resume-craft

Resume Craft: Your go-to platform for effortlessly tailoring ATS-friendly resumes to job descriptions. Streamline your job application process and stand out in the competitive market.
https://resume-craft-ten.vercel.app
7 stars 3 forks source link

Google app script for creating/updating documents #42

Closed amlan-roy closed 7 months ago

amlan-roy commented 7 months ago

Is your feature request related to a problem? Please describe.

We want to send a post request from our next js app to google, and it should create a document in the correct location accordingly. We also want to send a get request with the document's id ("base" for base resume, and either some random id or v1,v2 etc for variants). It should get us the link of that doc if available.

So basically, we need 2 things:

  1. Post request to create the doc
  2. Get request to get the link of the doc   Parent Issue: https://github.com/amlan-roy/resume-craft/issues/41

    Describe the solution you'd like

We create a google app script, which accepts the formData in a post request, and based on the form data, generates resume for us. Along with the form data, it also accepts the doc id ("base", "variant-at--", or "--timestamp" etc). So the post request param can be like : { docId: --, resumeData: ... } Also need to add get request support, which will get the document ID, and will return the doc download link if available.

Note:

Are you willing to contribute to this issue?

Yes

Describe alternatives you've considered

Nothing as of now. Will update this ticket if anything comes up.

Additional context

NA

amlan-roy commented 7 months ago

Working on the app script changes right now.

amlan-roy commented 7 months ago

Script changes are still in progress.

It is around 40% done. The project setup took some time, and had some issues with the permissions.

Google app script currently does not support having multi column paragraphs. so had to update the resume structure.

amlan-roy commented 7 months ago

The Resume generation and post/get request code is completed. However in order to use this as an API endpoint, we need to have google auth and some access tokens, that will be sent with the request.

The issue that we're facing right now is that using cookies for storing these tokens is being deprecated, and can cause breaking changes. To mitigate that, google has introduced a new type of auth. Need to integrate that in our project. So pausing this change for now in order to work towards making the UI for the MVP ready.

amlan-roy commented 7 months ago

The script for resume generation and storage (pdf and doc), but due to integration issue, going ahead with firebase function and firebase storage instead.