Write code for a web server in c

Job ID: 39344120

Budget: €30 – €250 EUR

Write code for a webserver in c.

The web server shall host a page with a counter value and an increase and decrease button.

When a user connects using a web browser to the page, the user can increase/decrease the counter value. The counter value shall be logged on the command line from where the server is started. When the server is stopped and restarted the counter value shall be 0.

When the user disconnects i.e. the browser is closed or another website is opened, the counter value shall remain. When a second user connects, this value shall be displayed, this second user can manipulate the counter with the displayed increase decrease buttons.

Only 1 user can connect at the same time. When a user is connected and a second user is trying to open the page, an error shall appear explaining the service is already in use.

When the user does not disconnect, the page and counter function shall remain available.

The web server shall run on a raspberry pi running Debian Linux. It shall be written in c using library’s available from Debian repo or available online.

The web page shall compatible with common browsers on mobile phone, tablet and pc with various operating systems such as IOS, Android, Windows, etc.

The buttons shall be suitable for touch screen operation.

The code will be used as a proof of concept. Compiling instructions shall be provided with the code.
Related categories: C Programming Embedded Software HTML