Giter Site home page Giter Site logo

appman-exam's Introduction

Prerequirest

  • Node v8+
  • Git

Setup Exam

$ git clone https://github.com/thirawutp/react-exam.git
$ npm install

I. ออกแบบ UI และ Layout

  • Label
  • Logo
    • ใช้ไฟล์ logo.svg
    • ขนาดกว้าง 180px
  • Whiteframe
  • Text Input
    • มีขอบโค้ง 1rem
    • เมื่อมีการ Focus จะมีขอบสี #242526
  • Button
    • สีของปุ่มใช้สี deepskyblue
    • มีขอบโค้ง 5px
  • Tag A
    • เมื่อนำเม้าส์ Hover จะมีเส้นใต้ตัวอักษร
    • ตัวอักษรใช้สี deepskyblue
  • Background
    • สีพื้นหลัง ghostwhite

II. UI Component & Service

Run คำสั่ง

$ npm run server

แก้ไข Code ในข้อ 1 โดยทำการยิง Request ไปที่

[POST] http://localhost:3000/api/login

{
  "email" : String,
  "password" : String
}

*** email และ password ที่ถูกต้องคือ

{
  "email" : "[email protected]",
  "password" : "password"
}

ระหว่างการรอ response จาก server ให้ทำการแสดงถึงการ wating ด้วยการ หมุนโลโก้ react โดยมี class logo-spin เตรียมไว้แล้ว

หากได้รับ http code 200 ให้แสดง Alert และแสดงข้อความว่า Login Successed

หากได้รับ http code 40x ให้แสดงผลลัพท์ดังภาพ

ทุกครั้งที่มีการ submit form ให้ทำการเคลียร์ error label

III. JS & Unit Test

โดยการ Run คำสั่ง

$ npm run test 

จะต้องได้ผลลัพท์ดังนี้

เปิดไฟล์ /utils/index.js เพื่อทำการเขียน function

หลักการประเมิน (100 คะแนน)

  1. ออกแบบ UI & Layout
  • วิธีการ render html และการ manipulate DOM (10 คะแนน)
  • ความถูกต้องตามโจทย์ (15 คะแนน)
  • การเขียน style CSS (5 คะแนน)
  1. UI Component & Service
  • การใช้งาน react component, state, props (20 คะแนน)
  • การเรียกใช้ service และการ handle (10 คะแนน)
  1. JS & Unit Test
  • Pass 5 cases (15 คะแนน)
  • Logic (15 คะแนน)
  • Code style (10 คะแนน)

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.