Getting Started

Notes on Requirements:

  1. Minimum PHP 8.1 and above.
  2. NPM and Composer installed with the latest version
  3. If errors occurred during composer install or npm install, then remove the package-lock.json file and composer.lock file. If vendor or node_modules folders existed, remove them as well. Then perform the install command for composer and npm.
git clone https://github.com/fhlarif/hospital-directory.git
cd hospital-directory
cp .env.example .env

Note: Make sure the .env file is modify to your local dev environment. For database, we are using MySQL. Example:

Connecting to MySQL

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=remedy
DB_USERNAME=root
DB_PASSWORD=secret
composer install
npm install
php artisan key:generate
npm run build

Migrate the tables:

php artisan migrate

Visit the url:

http://localhost/hospital-directory/public