This project is associated with course DIT356 and has been done by group 8.
Status: The development of the project has stopped for now and there are no plans to continue it in the future.
Dentistimo is a distributed system which allows users to book dentist appointments in the Gothenburg region and allows for more clinics to be added in the future. This respository containts the Dentistimo_Backend. Dentistimo_Backend is a component which itself contains serve and interpreter components and the database. Server contains models for serveral entities inlcuding user, booking and clinic. It also contains controllers for each of the models. Controllers include several endpoints. When a request is sent from the frontend via mqtt, it first goes to the security component to check the authentication. Then the request is sent to the backend. The interpreter in backend checks the request topic and url and sends it to a realted async funtion which uses a relevant endpoint in thye contollers.
- Get middlware component from Middleware_Repo
- Run middleware according to the guides in Middleware_Readme
- Get security form Security_Repo
- Run security component according to the guides in Security_Readme
Make sure you are in the backend repository.
- Install the dependencies:
npm install - Run the interpreter:
node interpreter.js - Run the server:
node app.js
The main usage of backend is to provide functionality for the frontend through several endpoints, which can retrieve data from the database and change it accordingly.
If you encountred any issue related to the Dentistimo_Backend, it is suggested to first check the other components (security and middleware) and see if they are running properly.
Also you can run the tests by npm test
If you could not fix the issue, you can always contact us on this email.
We are for moment not open to contributions.