Skip to content

fhlarif/excel-upload

Repository files navigation

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/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:https://localhost/excel-upload/public

About

Solution for a code challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages