EmanueleRsp / Restaurant-Manager-in-C

University project. The goal was to develop a client-server application for a restaurant management using C language. Final project evaluation: 5/5 whit honours.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restaurant Manager: a client-server distributed application in C language

GitHub Release GitHub license Stars

The project is structured as a client-server application, where the multi-service server manages the incoming requests from three types of devices (client, table and kitchen), communicating by exchanging messages, using specific protocols and data structures. The server is also responsible for managing the data, which are saved in text files.

For any issue or question, please don't hesitate to contact me!

Documentation

This project was developed during "Computer Networks" course for the Bachelor's degree in Computer Engineering at the University of Pisa, so inner workings and implementation details are described in italian.

The main documentation of the project is available here: it contains a quite detailed description of the application, its functionalities and the protocols used for the communication between the devices.

For more details about the data storaging by server, please refer to the relative documentation.

For more details about the data structures used for data transmission, please refer to the relative documentation.

If you want to check the tasks required for the project, you can find them in the pdf file here.

Project structure

The project is structured in the following way:

  • code/ folder contains the source code of the application, which is in turn divided into multiple files:
    • code/elem/ contains the four main programs for each type of device (client, table, kitchen and server);
    • code/lib/ contains the source code of the libraries used by the programs, logically grouped by functionality.
  • docs/ folder contains the documentation of the project.
  • files/ folder contains the data used by the application stored by the server (more details in the relative documentation).
  • objs/ is the folder in which the object files are stored after the compilation of the source code.
  • exec.sh is the script used to compile and run the application.
  • Makefile is the makefile used to compile the source code or delete object/exe files.
  • README.md is the file you are reading right now :).

How to run the application

You can download the latest zip file released from here.

The project has been developed using some Unix-specific libraries (arpa/inet.h, netinet/in.h and sys/socket.h). In order to run the application, you need to have a Linux distribution installed on your machine.

Make sure to have installed the gcc compiler to compile C files:

gcc --version

Else, you can install it with the following command:

sudo apt-get update
sudo apt-get install gcc

To compile and run the application automatically, you can use the script exec.sh:

./exec.sh

To possibly delete object and exe files, you can use:

make clean

Final evaluation and comments

The project was evaluated with a score of 5/5 with honours.

The professor specifically appreciated the modularity of the application and the attention to memory management, expecially the fragmentation approach used to store data in files. He also appreciated the documentation of the project, which is quite detailed, well-structured and also faces up some critical points of chosen approaches.

About

University project. The goal was to develop a client-server application for a restaurant management using C language. Final project evaluation: 5/5 whit honours.

License:GNU General Public License v3.0


Languages

Language:C 98.6%Language:Makefile 1.0%Language:Shell 0.4%