Skip to content

Standalone project for generating a roast message by taking github username.

Notifications You must be signed in to change notification settings

Ajeet1606/github-roast-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roast Github

It's a standalone backend and a fun and interactive tool that fetches GitHub profile details based on a user's GitHub username and then generates a roast message using the Gemini API. The roast message is streamed as a response, adding a touch of humor to your experience.

Tech Stack 🚀

  • NodeJS & ExpressJS
  • Github API for getting the profile details
  • Gemini API for generating the roast message

Features ⭐

  • Fetches GitHub profile details using the GitHub GraphQL API.
  • Generates a roast message with the Gemini API.
  • Streams the roast message for an interactive experience.

Installation 🛠️

To get started with RoastGithub, follow these steps:

Prerequisites

  • Node.js: Ensure that you have Node.js installed. You can download it from nodejs.org.

Clone the Repository

git clone https://github.com/Ajeet1606/github-roast-backend.git
cd github-roast-backend

Install Dependencies

yarn

Configuration ⚙️

Before running the application, you need to configure the environment variables:

Create a .env file in the root of the project directory. Add your GitHub API token and Gemini API key to the .env file:

PORT=3000
VITE_GITHUB_TOKEN=
VITE_GITHUB_GRAPHQL_API=https://api.github.com/graphql
VITE_GEMINI_API_KEY=
VITE_GEMINI_MODEL=gemini-1.5-flash

Once you have installed the dependencies and configured the environment variables, you can start the application using the following command:

yarn dev

Endpoints

we've only one endpoint /roast/:username which takes your github username and sends you the roast response from Gemini in streamed format.

Acknowledgments 🙏

  • GitHub API
  • Gemini API

About

Standalone project for generating a roast message by taking github username.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published