Git Product home page Git Product logo

laravel-test's Introduction

วิธีการใช้งาน

1. สร้าง .env ไฟล์

$ cp .env-example .env
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel 

2. install dependencies ด้วย composer

$ composer install

3. รัน Docker

$ docker-compose up -d --build

4. Migrate DB เพื่อใช้งานระบบ Authen ของ Laravel

$ docker exec app php artisan migrate

เงื่อนไขในการทดสอบ

  • เวลาในการทดสอบ 1 ชั่วโมง
  • ไม่เน้น UX/UI ขอให้ระบบสามารทำงานตาม Requirement ได้
  • ต้อง authen ก่อนเท่านั้น ถึงจะสามารถใช้ระบบบันทึกข้อความได้

1. ระบบสามารถเก็บข้อความที่ต้องการที่จะบันทึกได้ โดยจะเก็บเป็น หัวข้อ และข้อความ

# ตัวอย่าง Field ที่เก็บข้อมูล
title varchar(255) not null
message text
timestamp
  • ไฟล์ migration
  • ไฟล์ model
  • ไฟล์ controller (resource)

2. ระบบสามารถแสดงตารางของข้อความได้ โดยจะแสดง หัวข้อ วัน/เดือน/ปี ในการสร้าง/แก้ไขล่าสุด และ ระบบสามารถเพิ่ม ลบ หรือ แก้ไข ข้อความได้

  • View ในการแสดงข้อมูลตารางของข้อความ
  • ปุ่มในการ เพิ่ม ลบ หรือ แก้ไข ข้อความ

3. ระบบสามารถแสดงรายละเอียดของข้อความได้ เมื่อคลิกที่หัวข้อของข้อความ

  • View ในการแสดงรายละเอียดข้อความ

4. การใช้งาน Docker

  • สามารถใช้งาน docker ในการทำงานได้

5. การใช้งาน Git

  • สามารถใช้งาน git clone
  • สามารถใช้งาน git pull request
  • สามารถใช้งาน git merge

laravel-test's People

Contributors

palmfuture avatar

Watchers

 avatar  avatar

Forkers

winzaa123

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.