Skip to content

Latest commit

 

History

History
77 lines (60 loc) · 2.01 KB

README.md

File metadata and controls

77 lines (60 loc) · 2.01 KB

Clinic System React

This project is a frontend for an application designed to manage a small medical clinic. It is built using React and MUI. The project can be run locally or deployed to a Kubernetes cluster. The system can be used as a frontend for the following backend project: Clinic System.

Table of Contents

Clone the repository and navigate to the project directory

git clone https://github.com/marekkawalski/clinic-system-react.git && cd clinic-system-react

Running project locally

Prerequisites

  • Node.js 20.x or higher
  • npm

Setup

  1. Install the dependencies
npm i

Running the Project

  1. Run the following command to start the application:
npm start
  1. Open the browser and navigate to http://localhost:3000/
  2. The application should be running

Deployment to Kubernetes

Prerequisites

Setup

  1. Add React app host to the hosts file
sudo echo '127.0.0.1       react.clinic.system.com'
>> ~/etc/hosts
  1. Run the following command to build the Docker image:
docker build . -t clinic-system-react:0.0.3
  1. Run the following command to deploy the application to Kubernetes:
kubectl apply -f k8s/deployment.yaml

Running the Project

  1. Open the browser and navigate to http://react.clinic.system.com/
  2. The application should be running