Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

TypeScript CRUD with admin panel. Deno + hono + eta based. OAuth2 authentication for google and x/twitter. Deno KV database. Zod validation

Notifications You must be signed in to change notification settings

healingdrawing/play-deno-kv-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD with simple admin panel.

Double login (google, x/twitter) + manage collected data using the admin panel.

Description

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

TWITTER_CLIENT_ID=
TWITTER_CLIENT_SECRET=

GOOGLE_OAUTH_CONFIG_REDIRECT_URI=http://localhost:8000/callback-google
X_OAUTH_CONFIG_REDIRECT_URI=http://localhost:8000/callback-x

ADMIN_IDS=idfromappscreen,anotheradmin,commaseparated
  • for deno deploy, the redirect_uri localhost:8000 should be replaced to used domain.
  • to get clent_id and client_secret first configure oauth2 for google and x/twitter accounts where you registered.
  • at the moment (2024) the solutions used have free plans.

Requirements

  • configured deno.
  • correct .env file(otherwise OAuth2 will fail).

Developed on linux.

Usage

  • clone the repo
  • create and fill .env file in repo root folder(README.md file level).
  • terminal: deno task bang to run locally.

For details discover deno.json file.

About

TypeScript CRUD with admin panel. Deno + hono + eta based. OAuth2 authentication for google and x/twitter. Deno KV database. Zod validation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published