From f8c647b53f5b4c71660721d4db730bf68efcacdf Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:28:08 -0400 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d4833512..1543a41b 100644 --- a/README.md +++ b/README.md @@ -16,31 +16,34 @@ ``` https://github.com/dhrumilp12/Mental-Health-Companion.git ``` -2. Build the server with Docker -``` -cd ./server -docker build --pull --rm -t mental-health-app:latest . -``` -3. Configure environment variables: +2. Configure environment variables: - Copy the `.env.example` file to a new file named `.env`. - Update the `.env` file with your specific configurations. ``` cp .env.example .env ``` -4. Setup the frontend environment with NPM +5. Setup the frontend environment with NPM ``` cd ./client npm install +npm run dev ``` 5. Run the backend: ``` +cd ./server +pip install -r requirements.txt python app.py ``` -6. Build the frontend: +5. Build the frontend: ``` npm run build ``` +6. Build the backend with Docker +``` +cd ./server +docker build --pull --rm -t mental-health-app:latest . +``` 7. Execute the frontend: ``` npm run preview