A fast & fun way to build portable cloud-native applications
This project demonstrates how to combine the power of an auto-scaling api with an auto-scaling db.
Neon is a fully managed serverless PostgreSQL. Neon separates storage and compute and offers modern developer features such as serverless, branching, bottomless storage, and more.
Follow the steps in the installation guide
If you do not have one already, create a Neon project.
Navigate to the Projects page in the Neon Console -> Click New Project. Specify your project settings and click Create Project.
Create a .env file from .env.template and update the db url, you'll want to use the pooled url since Neon suggests that this will work better with serverless functions.
Refer to the README located in the language specific version of this project.
curl https://localhost:4001/version
[
{
"version": "PostgreSQL 15.2 on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit"
}
]
This simple example queries the version of the database, next steps involve modifying the DB and building your app!
Nitric is a framework for rapid development of cloud-native and serverless applications. Define your apps in terms of the resources they need, then write the code for serverless function based APIs, event subscribers and scheduled jobs.
Apps built with Nitric can be deployed to AWS, Azure or Google Cloud all from the same code base so you can focus on your products, not your cloud provider.
Nitric makes it easy to:
- Create smart serverless functions and APIs
- Build reliable distributed apps that use events and/or queues
- Securely store and retrieve secrets
- Read and write files from buckets
The full documentation is available at nitric.io/docs.
We're completely open-source and encourage code contributions.
-
Ask questions in GitHub discussions
-
Find us on Twitter
-
Send us an email
-
Jump into our Discord server