The Data API Service
The first component that we need is an API service that allows our devices to communicate the work they've completed to W3bstream. This service will implement the data streaming and sequencing layers of the Layered DePIN Infrastructure.
For our project, we will leverage the existing demo API provided with W3bstream deploying it on a Linux server in the cloud configured with Ubuntu 24. This setup is flexible and can be hosted on any VPS or equivalent cloud service.
Step 1: Set Up Your VPS
SSH into Your VPS
Use SSH to connect to your server. Replace username
with your server username and your_server_ip
with the actual IP address of your server.
Update and Upgrade the System
Ensure your server is up to date with the latest security patches and updates.
Step 2: Install Docker and Docker Compose
Install Docker
Follow the official instructions to Install Docker
Verify that the Docker Engine installation is successful by running the hello-world
image.
Install Docker Compose
Verify Installation:
Check that Docker and Docker Compose are installed correctly:
Step 3: Configure Docker Compose
Fetch the latest W3bstream docker-compose.yaml
Fetch the latest release of docker-compose.yaml from the W3bstream repository
Configure docker images
Edit docker-compose.yaml and apply the following changes:
Delete or comment out all image sections except the sequencer and Postgres images
Configure the Postgres database image
Configure the Database settings in the sequencer image to match the Postgres configuration
Last updated