Skip to content

codeiox/GlobalHomeHealthCare

Repository files navigation

GlobalHomeHealthCare

Description

A web application that allows users to submit information via a frontend form. The backend API, built with C++ and the Crow framework, securely stores the submitted data in a MySQL database.

Features

  • RESTful API using the Crow framework
  • Secure data storage with MySQL
  • Environment variable management using cpp-dotenv
  • Frontend developed with HTML, CSS, and JavaScript

Prerequisites

Ensure the following are installed on your local machine:

Setup and Installation

Clone the Repository

git clone https://github.com/yourusername/GlobalHomeHealthCare.git
cd GlobalHomeHealthCare

create .env file and included in your build folder you will need to add the following

DB_HOST=localhost
DB_NAME=your_database
DB_USER=your_username
DB_PASS=your_password
RECAPTCHA_SECRET=your-secret-key-here

Build the Project

mkdir -p cmake-build-debug
cd cmake-build-debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build .

Running the Application

macOS

Make sure you're in build directory before running following command:

export DYLD_LIBRARY_PATH="/opt/homebrew/opt/openssl@3/lib" 
 sudo DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH" ./executable

Linux

export LD_LIBRARY_PATH="/usr/local/openssl/lib"
sudo LD_LIBRARY_PATH="$LD_LIBRARY_PATH" ./executable

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published