Skip to content

Latest commit

 

History

History
85 lines (52 loc) · 2.4 KB

File metadata and controls

85 lines (52 loc) · 2.4 KB

Nest Logo Nest Logo

Github-Oauth-App

Introducing our web app that simplifies the process of creating a GitHub repository. With our user-friendly interface, you can quickly authorize your GitHub account and create a new repository with just a few clicks. Say goodbye to the hassle of navigating GitHub's complex settings and commands. Our app streamlines the process, making it easy for both beginners and experienced developers to create a new repository. Additionally, our app allows you to customize your repository's name, description, and other details. Whether you're working on a personal project or collaborating with a team, our app makes it easy to get started on GitHub. Try it out today and experience the convenience of creating a new repository in seconds!

Tech Stack

Client: Html , Css , Javascript

Server: Nest.js

Environment Variables

To run this project, you will need to add the following environment variables to your .env file in root directory

for getting the bellow credentials please reffer the bellow url https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app

GITHUB_CLIENT_ID= YOUR_CLIENT_ID
GITHUB_SECRET= YOUR_APP_SECRET
PORT= 5100

Installation

Install my-project with npm

  git clone https://github.com/Kallyan01/github-oauth-nestjs.git
  cd github-oauth-nestjs
  npm install
  npm run start

API Reference

OAuth login

  GET /auth/user

Redirect You to github OAuth Popup , where you have to grant permission to access all the repo read & Write data

OAuth callback

  GET /auth/gitoauth-callback
Body Type
code string

Generate the accessToken for you

Create Repository

  POST /user/create_repo
Header Type Required
authorization Bearer true
Body Type Description
name String Repo Name
description String Repo Description

create repo for the logged in user