Make sure to have yarn
installed.
The following instructions will assume that you are using it (but it should also work with other package managers like npm
)
You can start the application opening a command line in the root of the project an run
bash start.sh
The application should be accessible from http://localhost:4200/
If that doesn't work you can perfom the steps manually:
First we need to build the hospital library (which holds the core logic of the application)
# Navigate to the library directory
cd hospital-lib
# Install dependencies
yarn
# Build it
yarn build:prod
Then we need to start the backend server
To do so, open another terminal and run the following
# Navigate to the backend directory
cd hospital-be
# Install dependencies
yarn
# Start the server
yarn start
Finally, to start the frontend application, open another terminal and run the following
# Navigate to the frontend directory
cd hospital-fe
# Install dependencies
yarn
# Start the application
yarn start
Remember, the application should be accessible from http://localhost:4200/
You can update the list of drugs and patients through the control panel
Each result comes from the backend server.
Once you are ready, use the simulate
button to create a simulation register.
Last 10 simulations are displayed in the history.
The application is fully responsive without a single media query! 🎉
No 🐭 needed. You can fully use it with your keyboard.
We even have visual indications! 👀
# Navigate to the library directory
cd hospital-lib
# Install dependencies
yarn
# Run the tests
yarn test
# Navigate to the frontend directory
cd hospital-fe
# Install dependencies
yarn
# Run the tests
yarn test
- Component testing could be more intensive, especially on larger components
- The style files could have a more semantic structure and be a little more reusable among the different components
- Dynamic dependency injection could be implemented to use fake services on demand and thus not depend on the backend server or the library itself to start the application.
Developed by Julio César Castro López