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/excel-upload.git
cd excel-upload
cp .env.example .env
Note: Make sure the .env file is modify to your local dev environment. For database, we are using SQLite to simplify the process. Therefore, a file named database.sqlite
is needed and an absolute path is required. Adjust the path syntax based on your OS
Example:
Creating database.sqlite
touch .\database\database.sqlite
DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE="C:\\laragon\\www\\excel-upload\\database\\database.sqlite"
DB_USERNAME=root
DB_PASSWORD=
composer install
npm install
php artisan key:generate
npm run build
Migrate the tables:
php artisan migrate
Visit the url:
http://localhost/excel-upload/public