Giter Club home page Giter Club logo

assignment's Introduction

Coding assignment for showcasing my skills and expertise.

Description

  • Create a list of books, with the following functions,
    • Add a book to the list.
    • Delete a book from the list.
    • Change an authors name
    • Sort by title or author
    • Search for a book by title or author
    • Export the the following in CSV and XML
      • A list with Title and Author
      • A list with only Titles
      • A list with only Authors

Installation

  • Clone this repo to your local machine
$ git clone https://github.com/zmax92/assignment.git
$ cd assignment/
  • Copy .env.example file to .env file
$ cp .env.example .env
  • Apply changes to lines in .env file
ln 5: APP_URL=http://localhost
ln 9: DB_CONNECTION=mysql

to

ln 5: APP_URL=http://127.0.0.1:8000
ln 9: DB_CONNECTION=sqlite

and remove all other DB_ lines

ln 10: DB_HOST=127.0.0.1
ln 11: DB_PORT=3306
ln 12: DB_DATABASE=laravel
ln 13: DB_USERNAME=root
ln 14: DB_PASSWORD=
  • install composer packages
$ composer install
  • install npm packages
$ npm install
  • create databases
$ touch database/database.sqlite
  • Create database tables from migration files and populate them with initial data
$ php artisan migrate:fresh --seed
  • Generate application encryption key
$ php artisan key:generate

Deployment

Run app on Local Development Server

$ php artisan serv

This will launch Laravel development server on http://127.0.0.1:8000, and in browser will be greeted with

Screenshot browser

Running the tests

To run tests, there must be Google Chrome and ChromeDriver installed

  • Run all existing tests
$ php artisan serv
$ php artisan dusk

(Optional) filter specific group of tests or specific feature test

$ php artisan dusk --filter BooksBrowserTest
$ php artisan dusk --filter testFrontendCreationOfBook
$ php artisan dusk --filter testFrontendDeletionOfBook
$ php artisan dusk --filter testFrontendUpdateAuthor

Demo

assignment.zmaher.com

assignment's People

Contributors

zmax92 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.