Coder Social home page Coder Social logo

marfeelizablesites's Introduction

Laravel project for the PHP test

  1. PHP 7.1.3
  2. PHPUNIT 7.0
  3. LARAVEL 5.6 *see composer.json

Deployment

  1. clone repository
  2. composer update
  3. create mysql DB for project (per ex. marfeelizablesites) -> can use other appearing in config/database.php
  4. create .env / copy from .env.example -> with your mysql DB credentials
  5. php artisan key:generate
  6. php artisan migrate:fresh

if migration fails -> composer dump-autoload -o

VIF(Very Important Files)

  • app/Site.php -> Site model
  • app/Http/Controllers/SitesController.php -> Controller where POST Site is
  • app/Includes/MarfeelOperations.php -> Business Operations Class
  • app/Includes/WebCrawler.php -> Web Crawler Class
  • database/migrations/2018_06_15_085533_create_sites_table.php -> creates table 'sites'
  • routes/web.php -> routes the json to the API at http://localhost/marfeelizableSites/public/sites (all routes but POST are closed)
  • tests/Unit/MarfeelOperationsTest.php -> tests MarfeelOperations
  • tests/Unit/SitesControllerTest.php -> tests SitesController
  • tests/Unit/WebCrawlerTest.php -> tests WebCrawler
  • .env -> has all DB persistence related data :: at gitignore, must be remade with .env.example

marfeelizablesites's People

Contributors

pmoragas avatar

Watchers

 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.