Giter VIP home page Giter VIP logo

pam_project_tictactoe's Introduction

PAM_Project_TicTacToe

WebDev Project

อ่านก่อนจะได้ไม่โง่

1.) Clone มาซะไว้สัก Directory
2.) เปิด Project เข้าไปที่ Dirที่คุณCloneมา/PAM_Project_TicTacToe/pam_project
3.) พิมพ์คำสั่ง npm install ใน Editor Terminal ของคุณ
4.) เวลาจะทำก็ npm run dev มันจะให้ domain local มา ก็กดไปซะ มันจะเป็นเหมือน Live server ของ VSCode น่ะแหละ แต่ถ้ามึงทำผิดมันจะด่ามึงและบอกสาเหตุว่าไฟล์ไหนบรรทัดไหน

tailwind.config.cjs => custom คำสั่งบางคำสั่งสำหรับ Tailwindcss ลองดู Docs Tailwind


postcss.config.cjs => Post css นั่นแหละอยากทำก็ทำได้ แต่ถ้าไม่ทำก็ไม่เสียหายเพราะไม่จำเป็น แค่ทำให้ CSS File มีขนาดเล็กลงมาก


components folder => components สำหรับ Layout (UI) ถ้าทำแล้วเอาไปใส่ใน App.jsx ด้วย เหมือน Testcomp ที่เอาไปใส่ Copy testcomp.jsx ไปทำต่อก็ได้ จะทำในไฟล์เดียวกันก็ได้ทั้ง JS ทั้ง Style หรือคุณจะแยกก็ได้ (โปรดทำ folder: js/ไฟล์ js) รบกวนใช้นามสกุลไฟล์เป็น .jsx นะ มันคือ react ในแบบ Js (ความจริงคือ CLI ของ Vite ที่จะ Bundling ให้ไฟล์เราเล็กลง และCorrect จุดผิดบางอย่าง หรือการเขียนโค้ดที่ไม่จำเป็นตอน Compile ปล.นี่คือที่กูพอเข้าใจ) ผมมี example.jsx ให้ดูเผื่อคุณจะดูว่ามันเป็นยังไงทำยังไงก็ลองอ่านๆดูก็ได้ แต่ถ้าไม่เข้าใจก็ทำตามที่คุณเข้าใจเลยเดี๋ยวผมมา Correct ทีหลังเอง


Animation => ถ้าจะไม่ทำเองก็ใช้ gsap จะได้ร่นเวลาในการทำด้วย จะได้ไม่ต้องไปยุ่งกับ Anim มากนัก แต่ถ้าจะทำเองก็ไม่เกี่ยงได้หมดครับ

แหล่งเรียนรู้เผื่ออยากจะเข้าใจ React หรือเอามาทำส่วนของตัวเอง https://reactjs.org

Firebase ผมใช้ชื่อ pam-tictactoe ไม่ต้องยุ่งก็ได้เดี๋ยวตรงนี้ผมทำเอง

Tailwindcss Docs https://tailwindcss.com/docs/installation

Socket.io Docs https://socket.io/docs/v4/server-installation/

pam_project_tictactoe's People

Contributors

inginglucky7 avatar pawpawmasterpiece avatar it63070135 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.