Tag Archives: Sinatra

Webservice for system info: client part

Introduction In this post, we created a webservice that would allow us to store system information such as public and private IP address or the system name of your computer. In this post, we will develop a small client to use the server. GET /ip Retrieves the list of all systeminfo from the database GET /ip/:id Retrieves a… Read More »

Webservice for system info: server part

Introduction The purpose is to build a webservice to store system information such as private and public IP address, computername etc. We will build a Sinatra app with a sqlite database for development purposes and a Postgres database for production purposes as we will deploy it to Heroku when finished. If it’s the first time you are deploying… Read More »