-1
I am developing my TCC and need guidance on how best to do some parts of the system.
Description:
It is a system for optimizing the use of laboratories. Such a system should have web frontend on the client side and a web service on the server side.
Frontend - simple system that should have a list of laboratories and some information, such information should be sent to the server through the web service. The frontend also have a "RUN" button, which should communicate to the server-side web service, the server will run the optimization algorithm and return the response to the frontend to be displayed to the user.
Server - should have a Rest API (or similar) for communication with the frontend. I already have a DLL ready with the definition of system classes, datacontext for entityframework and implemented optimization algorithm. The server side should run the optimization algorithm at predefined times and when clicking the "RUN" button on the frontend.
Problems I’ve been facing:
- I don’t know how to make the "RUN" button generate an action (run the algorithm) on the server side.
- I don’t know how to get the method to run the algorithm at times specific on server side.
I thought about implementing a state machine (as a console application) on the server to do this control of when to run the algorithm. But I don’t know if this is the best way to do this.
I am open to possible solutions to these specific problems, or even change the architecture of the system.
The only thing I can’t stop using is the DLL with the classes and methods for the algorithm, but I can make small modifications to it.
On your front-end side, you’re working with which javascript technology?
– Gabriel Coletta