GithubHelp home page GithubHelp logo

laravel-coding-test-level-1's Introduction

Laravel Live Coding Test

Follow this steps

Application Setup (DO THIS FIRST)

  • Fork this repository into your GitHub account (You can create a GitHub account if you don't have one)
  • Clone the repository from your repository

First Test - CRUD REST API

  • Make sure that you are in main branch
  • Create a new branch and name it 1-crud-api
  • Create a model with name Event
  • Event will have these properties
    • id -> PK, UNIQUE, value must be a UUID
    • name -> String
    • slug -> UNIQUE, String
    • createdAt -> NOT NULL, DateTime
    • updatedAt -> NOT NULL, DateTime
  • Create these APIs
    • GET /api/v1/events -> Return all events from the database
    • GET /api/v1/events/active-events -> Return all events that are active = current datetime is within startAt and endAt
    • GET /api/v1/events/{id} -> Get one event
    • POST /api/v1/events -> Create an event
    • PUT /api/v1/events/{id} -> Create event if not exist, else update the event in idempotent way
    • PATCH /api/v1/events/{id} -> Partially update event
    • DELETE /api/v1/events/{id} -> Soft delete an event
  • Seed the database with dummy events (min. 5 events)
  • Merge 1-crud-api with main, use PR

Second Test - UI

  • Make sure that you are in main branch
  • Create a new branch and name it 2-ui
  • Create these views
    • /events -> Show all events in the table (search and pagination has bonus point). Last column should display 2 buttons on each row to update and delete the event
    • /events/{id} -> Show individual event
    • /events/create -> Create an event
    • /events/{id}/edit -> Edit an event
  • Merge 2-ui with main, use PR

Third Test - Advance Topic

  • Make sure that you are in main branch
  • Create a new branch and name it 3-advance-topic
  • Implement these features
    • Server side data caching with redis
    • Send an email everytime an event is created (you can use mailtrap or other smtp provider that's easy to setup)
    • Authentication -> only authenticated users can create, update and delete events
    • Calling of an external API(s) and display the data in the UI

Bonus points

  • If you follow a clean code principle
  • If you follow a good git practice
  • If you deploy the application on the internet

Finally

  • Push all the codes into the your remote repository
  • Make sure the repository is public

laravel-coding-test-level-1's People

Contributors

ishakantony 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.