https://github.com/leabs/clerk-astro
A simple Astro site using Clerk user managemenet components
https://github.com/leabs/clerk-astro
Last synced: 4 months ago
JSON representation
A simple Astro site using Clerk user managemenet components
- Host: GitHub
- URL: https://github.com/leabs/clerk-astro
- Owner: leabs
- Created: 2024-07-23T14:48:16.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T15:23:05.000Z (almost 2 years ago)
- Last Synced: 2025-03-20T04:43:49.395Z (about 1 year ago)
- Language: Astro
- Homepage: https://clerk-astro.vercel.app
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clerk Astro
This is a simple project to demonstrate the use of user accounts with [clerk](https://clerk.com/) and a simple [Astro](https://astro.build/) site.
## Getting Started
To get started, you will need to create a Clerk account and have Astro installed for local development. Once you have created your clerk account, you will need to create a Clerk application.
Fork this repository and clone it to your local machine. Once you have cloned the repository, you will need to install the dependencies.
```bash
npm install
```
## Local Development .env
Create a `src/.env.local` file add the following environment variables.
```bash
PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
```
These can be found on the clerk dashboard in the api keys section.
## Running the project
To run the project locally, you can use the following command.
```bash
npm run dev
```
## SSR Adapter
This project uses the Vercel SSR adapter to allow for server-side rendering of the Clerk components.
## Deployment
This project is set up to be deployed to Vercel. The easiest way to do this is to push your project to a repository and import it into Vercel. Once you have imported the project, you will need to add the environment variables to the Vercel dashboard in the settings section.