A demonstration project showing how to use Skip's reactive data streaming with a PostgreSQL backend. This project implements a simple blog post system with real-time updates using Skip's streaming capabilities.
- Real-time post streaming using Skip's reactive data system
- PostgreSQL integration for data persistence
- RESTful API endpoints for post management
- Support for streaming data access
Merely run the script for that:
./init_and_start_server.sh
GET /posts/:id
- Get a specific postPOST /posts
- Create a new postPATCH /posts/:id/publish
- Publish a postPATCH /posts/:id/unpublish
- Unpublish a postDELETE /posts/:id
- Delete a post
GET /users
- List all usersGET /users/:id
- Get a specific user
GET /streams/posts
- Get a stream of all postsGET /streams/posts/:uid
- Get a stream for a specific post
This project demonstrates Skip's reactive data capabilities:
- Real-time data streaming using Skip's service broker
- Automatic data synchronization between clients
- Efficient resource management with Skip's resource system
To clean up the development environment:
pnpm clean
docker stop skip-demo-postgres && docker rm skip-demo-postgres