Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericmaya8a/astro-auth-example
A simple Auth example with Astro, Prisma and Postgres
https://github.com/ericmaya8a/astro-auth-example
astro authentication docker-compose postgres prisma react react-hook-form tailwindcss zod
Last synced: 22 days ago
JSON representation
A simple Auth example with Astro, Prisma and Postgres
- Host: GitHub
- URL: https://github.com/ericmaya8a/astro-auth-example
- Owner: ericmaya8a
- Created: 2024-01-20T19:30:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-28T19:07:26.000Z (about 1 year ago)
- Last Synced: 2024-11-22T03:15:50.681Z (3 months ago)
- Topics: astro, authentication, docker-compose, postgres, prisma, react, react-hook-form, tailwindcss, zod
- Language: TypeScript
- Homepage:
- Size: 341 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# Astro Auth Example
This is a Auth example with [prisma](https://www.prisma.io/) and [postgres](https://www.postgresql.org/) using [Astro](https://astro.build/)
## 🛠️ Stack
-
[Astro](https://astro.build/)
-[React](https://react.dev/)
-[React Hook Form](https://react-hook-form.com/)
-[Prisma.io](https://www.prisma.io/docs)
-[Postgres](https://www.postgresql.org/docs/)
-[Zod](https://zod.dev/)
-[docker compose](https://docs.docker.com/compose/)
## Getting Started
1. Install [`docker desktop`](https://docs.docker.com/desktop/install/mac-install/)
2. Install dependencies:```sh
yarn install
```3. Set your environment variables (example in `.env.example` file)
4. Start postgres container, seed data and run development server:
```sh
yarn dev:up
```5. Open [http://localhost:4321](http://localhost:4321) with your browser.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------ | :--------------------------------------------------------------------------------- |
| `yarn install` | Installs dependencies |
| `yarn run dev:up` | Start a postgres db with seed data and starts local dev server at `localhost:4321` |
| `yarn run dev` | Starts local dev server at `localhost:4321` |
| `yarn run dev:down` | Stop local dev server and remove postgres db |