node-pg-migrate
prawn-stack
node-pg-migrate | prawn-stack | |
---|---|---|
4 | 4 | |
1,281 | 6 | |
0.9% | - | |
9.5 | 4.5 | |
3 days ago | 10 months ago | |
TypeScript | TypeScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
node-pg-migrate
-
Fully featured Repository Pattern with Typescript and native PostgreSQL driver
Why PG? For the clarity of the article to a large circle of developers, the entire explanation will be built by PostgreSQL and PG package. And in a real project, the database schema will change over time, and in order to be able to perform migrations, we will use Node PG migrate.
-
New to PostgreSQL - Best way to use it?
b) How you will manage schema migrations: every time you change tables, columns, foreign keys, every time you create or modify stored procedures, and so on, you need to do this through a migration. Here I'm at loss to recommend anything specific, but if you went with Prisma, I would read their docs and use whatever they are recommending you (if they actually recommend something). If you want something more neutral but still in the node ecosystem, node-pg-migrate might be the winner here? I'm not sure.
-
Postgres: What is the development process?
You’ll probably want something like this too: https://github.com/salsita/node-pg-migrate
-
The Architecture of a One-Man SaaS
You can use any normal DB migration tool. For k8s, I put the app's readiness probe to false, run the migrations and then toggle the probe back to true.
Here are some migration libraries:
Go - https://github.com/golang-migrate/migrate
Node - https://github.com/salsita/node-pg-migrate
prawn-stack
-
PostgreSQL Views and Materialized Views and How They Influenced TimescaleDB
I wanted incremental refresh in Postgres as well and found that you can manage your own table to get something close.
Basically you create a regular table in place of a materialised one, only aggregate data newer than what's currently in the table then store the new aggregates in table. Repeat this an interval.
https://github.com/cadbox1/prawn-stack/blob/master/src/backe...
I use this to show page view data aggregated by hour without calculating it on each request using Lambda
https://prawn.cadell.dev/
- A modern page view counter to see unpopular my project is. Powered by a PRAwN stack (Postgres, React, AWS and Node) in the free tier deployed using CDK.
- Show HN: A modern page view counter to see how unpopular my project is
-
The Architecture of a One-Man SaaS
I don't have the startup part yet but here's my one-person stack with Postgres, Node and React deployed on AWS with CDK using RDS, Lambda, S3 and Cloudfront. It's 100% in the free tier.
https://github.com/cadbox1/prawn-stack
What are some alternatives?
sql-lint - An SQL linter
pg_ivm - IVM (Incremental View Maintenance) implementation as a PostgreSQL extension
graphjin - GraphJin - Build NodeJS / GO APIs in 5 minutes not weeks
LetsShip - Let's learn devops by shipping a final product in .NET 5
logpaste - A simple web service for storing text log files
litestream - Streaming replication for SQLite.
flan - A tasty tool that lets you save, load and share postgres snapshots with ease
app-engine-cloud-run-
postgres-meta - A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries
diagrams - :art: Diagram as Code for prototyping cloud system architectures
blog - Opensource,Database,AI,Business,Minds. git clone --depth 1 https://github.com/digoal/blog
kubernetes-the-hard-way - Bootstrap Kubernetes the hard way. No scripts.