Giter Club home page Giter Club logo

coverlettergpt's Introduction

CoverLetterGPT.xyz

Running it locally

After cloning this repo, you can run it locally by following these steps:

  1. Install Wasp by running curl -sSL https://get.wasp-lang.dev/installer.sh | sh in your terminal.
  2. Create a .env.server file in the root of the project
  3. Copy the env.server.example file contents to .env.server and fill in your API keys
  4. Make sure you have a Database connected and running. Here are two quick options:
  • run wasp start db from the project root. You need to have Docker installed (if not, on MacOS run brew install docker-machine docker and start the Docker app). This will start a Postgres database and configure it for you. No need to do anything else!
  • or provision a Postgres database on Railway, go to settings and copy the connection url. Paste it as DATABASE_URL= into your env.server file.
  1. Run wasp db migrate-dev
  2. Run wasp start
  3. Go to localhost:3000 in your browser (your NodeJS server will be running on port 3001)
  4. install the Wasp extension for VSCode for the best DX

How it works

coverlettergpt.xyz was built in a couple of days using a few really cool tools:

  • 🐝 Wasp - allows you to build full-stack apps with 10x less boilerplate
  • 🎨 Chakra-ui - UI components for React that look good and are easy to work with
  • 🤖 OpenAI - GPT-3.5 turbo and GPT-4 API
  • 💸 Stripe - for payments
  • ⚡️ Lightning / Bolt11 - for Bitcoin Lightning payments

Wasp as the full-stack framework allows you to describe your app’s core features in the main.wasp config file in the root directory. Then it builds and glues these features into a React-Express-Prisma app for you so that you can focus on writing the client and server-side logic instead of configuring. For example, I did not have to use any third-party libraries for Google Authentication. I just wrote a couple lines of code in the config file stating that I want to use Google Auth, and Wasp configures it for me. Check out the main.wasp file for more.

Also, Chakra-ui is great for building nice looking UI’s really quickly and easily. Some people are turned off by the fact that they’re React components, but I find that they’re easy to customize and configure, and get me started on designs 10x faster and with less code than tailwind.

For more info on the prompts and configuration I used for the OpenAI API, check out the src/server/actions.ts file.

Stripe makes the payment functionality super easy. I configure two subscription products, one for GPT-3.5 turbo and another for GPT-4. After the user pays, I update their hasPaid and datePaid fields in the database.

Lightning / Bolt11 is a great library for working with Bitcoin Lightning payments. I used it to generate a Lightning invoice for the user to pay. After the user pays, I update their LnPayment.status field in the database (see src/server/ln.ts), which allows the user to perform a generation on the front-end. I personally accept the payments to my Alby lightning address.

I also implemented a cron job to send an email to the user to notify them 2 weeks before their subscription ends. I used SendGrid for the email service.

If you have any other questions, feel free to reach out to me on twitter

coverlettergpt's People

Contributors

infomiho avatar vincanger 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  avatar  avatar  avatar  avatar  avatar  avatar

coverlettergpt's Issues

Other languages supported?

Would we be able to use other languages? Say spanish of french for instance?
If so how would we do it?
If not, are you interested in implementing it with a multichoice selection box or something like that?

Thanks for the website!

Make free usage account

Chatgpt and other alternatives can do this for free so we need free account for this as well

[Feature] Use local LLM model

Context

As an open-source advocate, I would like to demonstrate Coverlettergpt using alternative LLMs models provided as instance on HuggingFace.co

Solution

Add the possibility to switch from the Open AI model to a model stored locally

Update the README.md

Hello there!
I am a beginner into web development and I really liked this project. I would like to work on the README.md by making it more visually appealing and easier to surf through. Like:

  • Improving the header
  • Adding a description
  • Adding some badges
  • Restructuring the paras

Do assign the issue to me if approved!!!

License

Hi, I'd like to contribute, however I see you have not set any license yet. Will you fix it please? :)

Error when generating cover letters

I get the below error when trying to generate a cover letter

Request URL: https://coverlettergpt-server-production.up.railway.app/operations/update-cover-letter
Request Method: POST
Status Code: 500
Remote Address: 104.196.232.237:443
Referrer Policy: strict-origin-when-cross-origin

Seems like the OPTIONS call below succeeds but the POST call above fails:

Request URL: https://coverlettergpt-server-production.up.railway.app/operations/update-cover-letter
Request Method: OPTIONS
Status Code: 204
Remote Address: 104.196.232.237:443
Referrer Policy: strict-origin-when-cross-origin

I tried this yesterday as well and was unable to generate.

Payment went wrong

Hi Vin, I payed $ 5 this morning for lifetime access of coverlettergpt, and now its asking for $5 again. Can you help me? Thanks in advance . Jorn

Use GPT-4?

Is there an option to use GPT-4 instead of 3.5-turbo?

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.