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