An open API service indexing awesome lists of open source software.

https://github.com/nermalcat69/recipe-astro-drizzle

recipe to deploy astrojs with drizzle ORM and PostgreSQL on zerops.io
https://github.com/nermalcat69/recipe-astro-drizzle

Last synced: 5 months ago
JSON representation

recipe to deploy astrojs with drizzle ORM and PostgreSQL on zerops.io

Awesome Lists containing this project

README

          

# Zerops x Astro - Drizzle

Astro is a modern web framework for building fast, content-focused websites. [Zerops](https://zerops.io) simplifies deploying and running Astro apps, both server-side rendered and static. This recipe showcases the Drizzle ORM integration with PostgreSQL.

// need zerops + astro picture here
![solid](https://github.com/zeropsio/recipe-shared-assets/blob/main/covers/svg/cover-solid.svg)


## Deploy on Zerops

To deploy directly on Zerops, you can either click the deploy button below or manually copy the [import yaml](https://github.com/zeropsio/recipe-solidjs-nodejs/blob/main/zerops-project-import.yml) to the import dialog in the Zerops app.

[![Deploy on Zerops](https://github.com/zeropsio/recipe-shared-assets/blob/main/deploy-button/green/deploy-button.svg)](https://app.zerops.io/recipe/solidjs-nodejs)


## Recipe Features

- Latest Astro version with TypeScript support
- Seamless database management using [Drizzle ORM](https://orm.drizzle.team/) with PostgreSQL on **Zerops Managed PostgreSQL** service
- Production-ready and scalable out of the box


## Production Readiness and Scalability

This recipe is production-ready and will automatically scale horizontally by adding more containers during high traffic surges. For the highest baseline reliability and resilience, start with at least two containers (add `minContainers: 2` in the recipe YAML under the `app` service section, or change the minimum containers in the "Automatic Scaling configuration" section of the service detail).

For advanced and structured logging, consider setting up [Winston](https://github.com/winstonjs/winston).


## Integrating with Existing Astro Apps

To efficiently run your existing Astro app on Zerops, no changes are needed in the codebase beyond the standard installation. Simply add [zerops.yml](https://github.com/dinxsh/recipe-astro-drizzle/blob/main/zerops.yml) to your repository.




Need help setting up your project? Join the [Zerops Discord community](https://discord.com/invite/WDvCZ54) for assistance.