Giter VIP home page Giter VIP logo

github-oauth-without-passportjs's Introduction

Github Authentication

An app to authenticate users using their Github account and save information on SQlite using Prisma ORM

Github Settings

  • Login into Github
  • Open the menu Settings
  • Click on Developer Settings
  • Click on OAuth Apps
  • Click on the button New OAuth App
  • Fill out the application name. Use a name that related to your app/project
  • Fill out the Homepage URL with the URL of your page. If you are doing local development use http://localhost:
  • Fill out the Application Description. You can just copy and paste the application name.
  • Fill out the URL that Github should call once the sign in is successful so it sends a code to that URL. For example: http://localhost:/signin/callback.
  • Copy github signin callback url to GITHUB_URL_ACCESS_TOKEN inside the .env file
  • Copy the client ID generated to CLIENT_ID inside the .env file
  • Click on Generate a new client secret and copy the content to the GITHUB_CLIENT_SECRET inside the .env file

Installation

yarn

Prisma Configuration

The file data/prisma/schema.prisma is the place where you should define your all your table schemas

Create your tables using Prisma

Before running your app execute the following terminal command to generate your tables on SQLite.

yarn prisma migrate dev

This should be done regardless of the DB you are using.

Running the Application

yarn dev

Routes

github-oauth-without-passportjs's People

Contributors

anderson-0 avatar

Watchers

 avatar

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.