This application is about optimizing the upload of huge xlxs files.
You can install the application by following these steps:
- Navigate to the desired location on your computer
- Open the command prompt and run
git clone https://github.com/JoeHossam/elfarouk-task.git
- Navigate to the project folder by running
cd .\elfarouk-task\
- Create a new database from the file attached
elfarouk-task.sql
NOTE: make sure the database runs on port 3306 or simply change it in the .env file.
- Run
composer update
, to install all the required packages for this projectNOTE: make sure you have gd extension enabled in your php.ini file, you can search for
extension=gd
in your php.ini file and uncomment it. - Run
php artisan serve
, to start the server
- After the server has started navigate to http://127.0.0.1:8000/users/import.
- There is a simple form where you can upload a file and submit to insert its data into the database.
NOTE: The application expects the file to has 3 columns; name, email and phone. There is also file testingData which already includes 20 thousands records.
- When the app finishes, you will see a simple json message
records successfully uploaded
and the excution time, that is when everything has finished succefully.
In the project directory, you can run:
Runs the app in the development mode.