No description
public | ||
src | ||
.dockerignore | ||
.env.sample | ||
.gitignore | ||
astro.config.mjs | ||
banner.png | ||
docker-compose.yml | ||
Dockerfile | ||
package.json | ||
README.md | ||
tsconfig.json |
Astro + Authorizer Template
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.