Skip to content

juliocastrodev/hospital-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospital Simulator 🏥

Install and run 💾

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/

Usage 🔬

You can update the list of drugs and patients through the control panel

Each result comes from the backend server.

Using the control panel

Once you are ready, use the simulate button to create a simulation register.

Simulate example

Last 10 simulations are displayed in the history.

History

Key points 🧐

The application is fully responsive without a single media query! 🎉

Responsive example

No 🐭 needed. You can fully use it with your keyboard.

We even have visual indications! 👀

Visual indications

Running the tests 🧪

Library

# Navigate to the library directory
cd hospital-lib

# Install dependencies
yarn

# Run the tests
yarn test

Frontend

# Navigate to the frontend directory
cd hospital-fe

# Install dependencies
yarn

# Run the tests
yarn test

To improve 📈

  • 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.

Author 🦸

Developed by Julio César Castro López

About

Hospital Simulator using Angular

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published