Giter Club home page Giter Club logo

byng's Introduction

Byng Test Project

In order for the project to be set up please follow the following instructions.

  • Clone the repo on your local machine.
  • Cd into the project and do composer install. That would require for Composer to be installed globally on your local machine. Further info is available at https://getcomposer.org/.
  • Rename the .env.example file in root folder to .env.

Database Settings

  • Within .env file change the set the database name, database username and database user password.
  • Once thats being set up then please run the php artisan migrate command form terminal. That should create the database. Migration files can be found under Byng/database/migrations
  • After the database is set up with tables then run the command php artisan db:seed from the terminal. That should populate articles table with Json file provided with test and a couple of registered users in users table with dummy data as was provided.
  • However if you getting error then please import the database.sql file which can be found in the root folder

Controllers

  • Controllers can be found under app/Http/Controllers

Models

  • Models can be found under app/ i.e User.php and articles.php

Routes

  • All http routes are configured from route.php file which can be found under app/Http/routes.php

Config Files

  • All config files are found under config directory in root folder, which shouldn't really require any changing.

Support

  • The support directory is located under app/support which has a helper.php file that is used to add a class for purpose filtering content.

Views

  • All the View files and the main app.scss file can be found under resources directory

Scss

  • The app.scss file can be found under Byng/resources/assets/sass

Public Folder

  • The public folder holds the compiled css, images and js directories.

Scss

  • The app.scss file can be found under Byng/resources/assets/sass

What's been accomplished

  • User visits the home page and see the filtered content i.e. youtube articles only.
  • To read all the articles user needs to sign in by clicking on login button at the top bar
  • The form will show errors if submitted with empty fields
  • If wrong credentials are provided then it will redirect the user back to homepage with visual feedback
  • Articles page can not be accessed without being successfully logged in
  • Once logged in successfully, user is visually notified and the navigation bar changes.

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.