Code Monkey home page Code Monkey logo

keda-interview's Introduction

Laravel Back End Keda Interview Manual

Postman docs

Here is the link to the api documentation :
postman-api-docs
or import public/keda tech interview.postman_collection.json to your postman app
Notes: make sure to check the environment variable in postman app. Some env variables are:

  • api_url
  • access_token
  • customer_id

Guidelines to do the project's

There are several prerequisite apps/packages before making this project, such as:

  1. PHP : version that is used on this project is PHP 7.4.14
  2. Composer (Laravel) : version that is used on this project is Laravel Framework 8.35.1
  3. PostgreSQL : version that is used on this project is postgres (PostgreSQL) 13.1

Next steps are:

  1. From terminal run the command to clone repo : "https://github.com/ivanrivaldi191/keda_interview.git"
  2. Move to the cloned repo
  3. Composer install or update
  4. Open the project with a text editor Identify .env.example on the root directory Copy .env.example and copy it to .env Change the following fields in the .env file: DB_DATABASE=dbname DB_USERNAME=dbuser DB_PASSWORD=dbpassword
  5. php artisan key:generate

Tasks to be done are:

  1. Identify and fix the problems that exist in the project (Hint: Started from migration until seeder)
    Note: You are not allowed to make a new migration/seeder file for the user / user type
    ,the password in seeder is bcrypted goes by "dummydummy"
    You must only use api.php for the "routing"

  2. Create Model for Customer and Controllers that support following features:

    • Login
    • Logout
    • Message to other Customer(s)
    • View own chat history
    • Can report other Customer(s) or own feedback/bug to Staff
  3. Create Model for Staff and Controllers that support following features:

    • Login
    • Logout
    • View all chat history
    • View all Customer + deleted Customer
    • Message to other Staff(s)
    • Message to other Customer(s)
    • Delete Customer(s)
  4. Auth on each page or feature

  5. You can create own Model and controllers to support point no 2 & 3, for example Model "Messages" to support Customer and Staff.
    You must not use any other packages / vendors, only from the composer or auth related are allowed which means only Laravel, Passport and JWT only.

  6. You are only tasked to work on the back-end side, so view is not important. Use postman for the documentation as for the testing you are allowed to use phpunittest or any php/Laravel testing.

keda-interview's People

Contributors

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