neondatabase / neonctl

Neon CLI tool. The Neon CLI is a command-line interface that lets you manage Neon Serverless Postgres directly from the terminal.
https://neon.tech/docs/reference/neon-cli
Apache License 2.0
54 stars 11 forks source link

feat: Adds neonctl create-app command #236

Closed davidgomes closed 3 months ago

davidgomes commented 4 months ago

This PR adds a new command to neonctl called neonctl create-app. It is a new scaffolding feature that creates applications with different frameworks, with Neon.

For now, it supports the following 4 package managers:

And it supports the following frameworks:

It supports authentication with:

It supports the following ORMs:

And its output can be deployed with:

During the scaffolding process, a template is instantiated from https://github.com/neondatabase/neonctl-create-app-templates/. Then, the user can configure the Vercel project/branch/database that will be used in conjunction. Finally, local development as well as deployment environment variables are configured according to the Neon URL.

Eventually, we should support frameworks such as Ruby on Rails, SvelteKit, Nuxt, etc., more ORMs like Prisma (or even straight up SQL), and more deployment options (Render, SST, Railway, etc.).