Skip to content

brianleroux/arc-example-deno-ssr-slack-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arc-example-deno-ssr-slack-oauth

Implementing Sign in with Slack oAuth flow with Deno, React and Architect.

  • Deno for the backend logic and React SSR
  • Architect for local dev sandbox and deployment to AWS
  • Slack API for the identity and auth

Setup

Run npm i and create .env with the following values:

  • SLACK_CLIENT_ID
  • SLACK_CLIENT_SECRET
  • SLACK_REDIRECT

Start the local sandbox by running npm start.

Implementation notes

Infra as Code (IaC) is implemented in package.json under the architect key. Equiv app.arc file would read:

@app
myapp

@http
# create session
/login 
  method get
  src backend/login

# destroy session
/logout 
  method any
  src backend/logout

# ssr handler
/* 
  method any
  src frontend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published