Git Product home page Git Product logo

emanuelersp / restaurant-manager-in-c Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2 MB

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

C 98.63% Shell 0.37% Makefile 1.00%
c client client-server distributed-systems server computer-networks

restaurant-manager-in-c's Introduction

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.

restaurant-manager-in-c's People

Contributors

emanuelersp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.