Skip to content

shamimulalam/eskimi

Repository files navigation

About Project

This project is developed for senior full stack PHP developer practical test.

Please click here for question paper

Technologies

  • PHP
  • Laravel
  • Mysql
  • Docker
  • VueJs

Installation Process

Docker is available in this project. Please install Docker before start. Click here to know about Docker. For installation guide please follow this link.

  • Step 1: Clone this project https://github.com/shamimulalam/eskimi.git form here. Please add --recurse-submodules flag while clone. That will pull laradock. Laradock is a full PHP development environment for Docker.

    git clone --recurse-submodules https://github.com/shamimulalam/eskimi.git

  • Step 2: For getting into project directory run

    cd eskimi

  • Step 3: Now create environment file

    cp .env.example .env

  • Step 4: Now setup database configuration into .env

    sudo nano .env

      DB_CONNECTION=mysql
      DB_HOST=mysql
      DB_PORT=3306
      DB_DATABASE=eskimi
      DB_USERNAME=root
      DB_PASSWORD=root
    

    replace DB section with above data. It's highly recommended to create new database user in MySql database with specific database permission and privileges. And use that credential here.

  • Step 5: For get into project docker directory run

    cd laradock

  • Step 6: Create docker environment file by copying env-example file to .env

    cp env-example .env

  • Step 7: Set same db credential in docker environment file.

    nano .env

      MYSQL_VERSION=latest
      MYSQL_DATABASE=eskimi
      MYSQL_USER=root
      MYSQL_PASSWORD=root
      MYSQL_PORT=33066
      MYSQL_ROOT_PASSWORD=root
      MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d
    
  • Step 8: Now build docker

    docker-compose up -d nginx mysql

  • Step 9: Login mysql container for creating database

    docker exec -it laradock_mysql_1 bash

  • Step 10: Login mysql console

    mysql -uroot -proot

  • Step 11: Create new database

    create database eskimi;

  • step 12: Exit from mysql console

    exit

  • Step 13: Exit from mysql container

    exit

  • Step 14: Now login into workspace container for application setup

    docker exec -it laradock_workspace_1 bash

  • Step 15: Download laravel dependencies

    composer install

  • Step 16: Now create environment key for laravel

    php artisan key:generate

  • Step 17: Create soft link with storage folder

    php artisan storage:link

  • Step 17: Now browse http://localhost/ for application

  • Step 18: For system test

    php artisan test

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published