BÁO CÁO BÀI TẬP 4 KIẾN TRÚC VÀ THIẾT KẾ PHẦN MỀM

32 0 0
Tài liệu đã được kiểm tra trùng lặp
BÁO CÁO BÀI TẬP 4 KIẾN TRÚC VÀ THIẾT KẾ PHẦN MỀM

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Trang 1

HỌC VIỆN CÔNG NGHỆ BƯU CHÍNH VIỄN THÔNG KHOA CÔNG NGHỆ THÔNG TIN 1

BÁO CÁO BÀI TẬP 4

Trang 2

I Create 10 applications/services in Django: user, manager, cart, check out & order, search, book, mobile, clothes, shipment, payment (Refer to [0.2] and [1] Chap 11 to learn how to create these services) Note that book, mobile, clothes are designed with MongoDB Copy the screen images what you have done to the word file The other services are designed in mySQL and PostgreSQL Encourage you to make some app such as user with PostgreSQL

(https://www.w3schools.com/postgresql/postgresql_install.php) 1 Tạo 10 app theo yêu cầu

2 3 app mobile, clothes, book kết nối với mongoDB; 7 app còn lại app với mysql:

Trang 3

Với book, clothes, mobile dùng MongoDB thì trong setting cần chỉnh như sau:

Còn dùng mySQL thì cần chỉnh như sau:

Trang 4

II Create Rest API to connect to the necessary services Copy images of your working process

1 APP User -Model

Trang 5

- Api đăng ký

- Api đăng nhập

Trang 6

2 APP Book - Model

Trang 7

Tạo serializer.py

Trang 8

Tạo views để gọi api

- Api xem danh sách sách của app book

-Api xem một cuốn sách

Trang 9

- Api thêm một book

Trang 10

-Api xóa một cuốn sách

Trang 11

-Api sửa sách

Trang 12

-Api xem danh sách các category

Trang 13

- Api thêm category

Trang 14

- Api sửa category

Trang 15

-Api xóa category

Trang 16

3 APP Clothes -Model

Trang 17

Views api tương tự book

-Api thêm clothes

Trang 18

- Api sửa clothes

- Api xóa clothes

Trang 19

- Api xem chi tiết clothes

- Api xem danh sách clothes

Trang 20

4 App mobile -Model

Trang 21

File views tương tự như book_service

Trang 24

-Api thêm mobile

Trang 25

-Api xem danh sách mobile

-Api xem chi tiết một mobile

Trang 26

- Api sửa một mobile

-Api xóa một mobile

Trang 27

-Api thêm branch

5 App cart -Model

Trang 28

-Api add to cart

Trang 29

- Api show cart

Trang 30

Api sửa số lượng sản phẩm

2.6 shipment_service

Trang 31

-Model

- Api shipment_service

Ngày đăng: 25/04/2024, 11:16

Tài liệu cùng người dùng

Tài liệu liên quan