Notes on Requirements:
- Minimum PHP 8.1 and above.
- NPM and Composer installed with the latest version
- If errors occurred during
composer install
ornpm install
, then remove thepackage-lock.json
file andcomposer.lock
file. Ifvendor
ornode_modules
folders existed, remove them as well. Then perform theinstall
command forcomposer
andnpm
.
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