LeeTun2k2Edu / Nhom8_CCPTPM

0 stars 0 forks source link

Tạo project sử dụng Reactjs và Python #3

Closed LeeTun2k2Edu closed 1 year ago

LeeTun2k2Edu commented 1 year ago
LeeTun2k2Edu commented 1 year ago
  1. Cài đặt NodeJS từ website: https://nodejs.org/en/download/
LeeTun2k2Edu commented 1 year ago
  1. Mở cmd, install the create-react-app package: install the create-react-app package
LeeTun2k2Edu commented 1 year ago
  1. Tạo React project: npx create-react-app api-dashboard
LeeTun2k2Edu commented 1 year ago
  1. Install nessesary package:
    • cd api-dashboard
    • npm install
LeeTun2k2Edu commented 1 year ago
  1. Tạo python evironment:
    • cd ..
    • python -m venv python
LeeTun2k2Edu commented 1 year ago
  1. Active virtual environment:
    • .\python\Scripts\activate
LeeTun2k2Edu commented 1 year ago
  1. Cài đặt backend framework Flask:
    • pip install flask
LeeTun2k2Edu commented 1 year ago
  1. Tạo file app.py, define route returns "Hello World!"
LeeTun2k2Edu commented 1 year ago
  1. Chạy thử project:
    • cd python
    • flask run
LeeTun2k2Edu commented 1 year ago
  1. Default Flask server: http://localhost:5000/
LeeTun2k2Edu commented 1 year ago
  1. Push project lên github.