1
Fork 0
No description
This repository has been archived on 2025-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2024-04-03 21:49:17 -04:00
public 🚀 Init 2024-04-03 21:49:17 -04:00
src 🚀 Init 2024-04-03 21:49:17 -04:00
.dockerignore 🚀 Init 2024-04-03 21:49:17 -04:00
.env.sample 🚀 Init 2024-04-03 21:49:17 -04:00
.gitignore 🚀 Init 2024-04-03 21:49:17 -04:00
astro.config.mjs 🚀 Init 2024-04-03 21:49:17 -04:00
banner.png 🚀 Init 2024-04-03 21:49:17 -04:00
docker-compose.yml 🚀 Init 2024-04-03 21:49:17 -04:00
Dockerfile 🚀 Init 2024-04-03 21:49:17 -04:00
package.json 🚀 Init 2024-04-03 21:49:17 -04:00
README.md 🚀 Init 2024-04-03 21:49:17 -04:00
tsconfig.json 🚀 Init 2024-04-03 21:49:17 -04:00

Astro + Authorizer Template

Banner

Setup

Clone the repository to your machine:

git clone https://sudovanilla.com/code/Korbs/astro-authorizer-template

Install packages with your preferred package manager:

# NPM
npm install

# Yarn
yarn

# Bun
bun install

# PNPM
pnpm install

Setup the .env file for your Authorizer instance:

authorizerURL='https://auth.example.com'
redirectURL='/'
clientID='00000000-0000-0000-0000-000000000000'

Run it:

npm start

The site should be running on http://localhost:4321.

Server-Side Rendering

This template is built to run on the server side, not client. So don't run this is a static site on your server or else where.

Astro has ways to run the site in SSR:

A Dockerfile has been provided for this repo, which can be built using:

docker build -t astro-authorizer-demo .

Then running it with:

docker compose up -d

The site should be running on http://localhost:7000.