Code Monkey home page Code Monkey logo

basewebfrontend's Introduction

Basewebfrontend

License

Installation on Window

Bạn cần có những thứ sau được cài đặt và cấu hình sẵn trước khi bắt đầu cài đặt project: NodeJS, Visual Studio Code. Nếu chưa cài đặt, vui lòng xem hướng dẫn sau:

Tài nguyên

Ở thời điểm hiện tại, các công nghệ sử dụng đã phát hành các phiên bản mới với nhiều bổ sung, nâng cấp. Tuy nhiên, những nâng cấp đó không phải lúc nào cũng đảm bảo được tính tương thích ngược, dẫn đến việc cài đặt theo hướng dẫn này có thể gặp những lỗi phát sinh không cần thiết. Vì vậy, nên sử dụng các bộ cài đặt được cung cấp ở đây:

Khi đã sẵn sàng cho quá trình cài đặt project, thực hiện lần lượt các bước 1 đến 3:

1. Cài đặt project

  • Thêm thư mục project basewebfrontend vào Workspace trong Visual Studio Code
  • Mở Git Bash tại thư mục project, chạy lệnh: npm i

2. Chạy project

  • Mở Git Bash tại thư mục project (có thể sử dụng Windows Command Prompt, Visual Studio Code Terminal, Windows PowerShell,...), chạy lệnh: npm start

Sau lần chạy thành công đầu tiên, ở các lần chạy sau chỉ cần thực hiện bước 2

3. Cấu hình Visual Studio Code

Bước này nhằm cài đặt và cấu hình một số extension hữu ích cho trải nghiệm và quá trình phát triển ứng dụng, ví dụ: tiện ích refactor, format code tự động, tiện ích làm việc với Git,... Vì vậy, bước này giữ vai trò cực kì QUAN TRỌNG và là BẮT BUỘC để giữ cho code base chuyên nghiệp, thống nhất xuyên suốt project.

Thực hiện lần lượt theo các bước sau:

  • Mở Visual Studio Code (nếu chưa mở)

  • Tuỳ chọn sử dụng một trong hai cách sau:

    • Mở Git Bash tại thư mục editor, chạy lệnh: ./vscode-extension-install.bash

    • Mở Visual Studio Code PowerShell tại thư mục editor, chạy lệnh:

    Get-Content extensions.txt | ForEach-Object {code --install-extension $_ --force}
    
  • Trong Visual Studio Code, mở Command Palette bằng shotcut CTRL + SHIFT + P

  • Trong Command Palette, nhập vào Open Settings và chọn Open Settings (JSON)

  • Thêm các cấu hình sau vào file settings.json ở vị trí cuối file, điều này đảm bảo ghi đè các cấu hình tương ứng (nếu có) được định nghĩa trước đó

4. Một số component

  • Tab: src/component/tab
  • Button: src/component/button
  • Dialog: src/component/dialog

5. Tips cấu hình IDEs

basewebfrontend's People

Contributors

anhtuan-ait avatar dungkhmt avatar hienhoang272 avatar tuandat95cbn avatar dungbv99 avatar trongnd32 avatar huy27041998 avatar daudung1998 avatar cuonglvsoict avatar kietnguyen10112000 avatar phamducdat avatar luuquangdong avatar huy2122k avatar loild193 avatar mhoang99 avatar tichambers99 avatar huyhoangtuan avatar quangtung97 avatar dependabot[bot] avatar maikhang1999 avatar trungtt123 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.