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.
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.
Ensure your server is up to date with the latest security patches and updates.
Follow the official instructions to Install Docker
Verify that the Docker Engine installation is successful by running the hello-world
image.
Check that Docker and Docker Compose are installed correctly:
Fetch the latest release of docker-compose.yaml from the W3bstream repository
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