Skip to content

joseburgon/Contacts_Importer

Repository files navigation

Build Status Total Downloads Latest Stable Version License

PHP - Contacts Importer App | by José Burgón

Mandatory tasks: All completed. Bonus tasks: S3 bucket and Hobby App in Heroku.

Main Package used in this project is: Laravel Excel.

Step 1: Clone repository

If it's Windows then I strongly recommend using Laragon as a local development environment.

Laragon provides a fast and easy way to spin up an isolated Windows development (like a Virtual Machine, it doesn’t touch your OS). Users can install it as a software, start it up, do their programming, and just exit when finished. The platform comes pre-installed with many popular applications like Node.js, PHP, Apache, Composer, and MariaDB/MySQL.

d:\laragon\www> git clone https://github.com/joseburgon/JobsityChallenge.git

Step 2: Load project packages and dependencies

d:\...\> composer install
d:\...\> npm install

Step 3: Create .env file

The .env file is generally not loaded, due to security issues. The easiest way to do this is to copy the .env.example file to .env, and modify the latter:

d:\...\> copy .env.example .env

Step 4: Create database

Laravel is configured to use mySQL by default, not only the driver, server, database, user and password must be changed, but also the port, mySQL uses 3306 and postgres 5432.

Step 5: Generate project key

Laravel requires an encryption key for each project.

d:\...\> php artisan key:generate

Step 6: Migrate and seed the database

I already created the migrations with the test data.

d:\...\> php artisan migrate --seed

Faker will create phone numbers with wrong format because it doesn't have a type of phone that matches with the test requirements.

Ready to go!

User test

Email: usertest@mail.com Password: 123456

Releases

No releases published

Packages

No packages published

Languages