Comments (4)
each quiz should also have these params:
- status: Incoming, happening, and finished. the status can be achieved by comparing startTime, endTime and current time
- QR raw image URL. QR logic should be executed right from back end
proposed changes:- change classID type from
string
toint
- if possible, change ID to normal number, starting from 1, not random string
__v
is unused
- classID để dành cho lưu cái id được tạo ra để liên kết, tìm kiếm, không phải mã lớp, cái name mới chứa mã lớp (hoặc mình có thể thệm trường riêng cho nó)
- Status, ok để mình xem
- __v là mặc định có, mongoose khuyên là không nên bỏ, trừ khi mình biết mình đang làm gì (mình có thể ẩn nó đi để front không nhận nó nữa)
- Mình chưa hiểu ý bạn về phần QR, bạn giải thích rõ hơn được không?
from cnweb30-backend.
- ô cứ tưởng classId là mã lớp :))) Nếu vậy mình nghĩ nên đổi lại tên param cho đỡ nhầm lẫn, classID sẽ là mã lớp của quiz, còn ID có thẻ là id bạn đang define cũng đc
- sau khi 1 quiz đc tạo trên backend, 1 link đến quiz sẽ đc tự động gen ra để sv truy cập vào, và 1 mã QR của URL sẽ đc gen ra và để trong api.
from cnweb30-backend.
- ô cứ tưởng classId là mã lớp :))) Nếu vậy mình nghĩ nên đổi lại tên param cho đỡ nhầm lẫn, classID sẽ là mã lớp của quiz, còn ID có thẻ là id bạn đang define cũng đc
- OK, thực ra quiz là cái mình tạo ra đầu tiên, nó còn nhiều vấn đề nên mình định tranh thủ lần này để sửa lại nhiều thứ
- sau khi 1 quiz đc tạo trên backend, 1 link đến quiz sẽ đc tự động gen ra để sv truy cập vào, và 1 mã QR của URL sẽ đc gen ra và để trong api.
- Thực ra các link / QR để sinh viên truy cập vào nên dẫn tới một trang của front để sinh viên điền thông tin điểm danh vào, khi sinh viên nhấn OK thì front sẽ gọi api tạo quizRecord để lưu thông tin sinh viên điền (lưu lượt điểm danh) rồi chuyển tiếp sinh viên đến form trắc nghiệm (nếu có) hoặc chỉ hiển thị thông báo thành công và "Bạn có thể đóng tab này" chẳng hạn
from cnweb30-backend.
Lấy danh sách quiz có thêm bộ lọc theo class
from cnweb30-backend.
Related Issues (20)
- Should we add update quizzes feature? HOT 3
- Notification
- Quiz record collect IP HOT 1
- Unused API HOT 2
- Class API HOT 4
- quizRecoeds bug HOT 8
- Next-auth HOT 9
- validate quizRecords HOT 2
- Change live server to new DNS HOT 5
- New Object: User (teacher) HOT 2
- get Quiz by iD and get quizRecord by ID should be public
- get Class return failed with error HOT 2
- remove users capability? HOT 9
- New Class HOT 1
- New Quiz HOT 1
- Class Dashboard HOT 3
- quizRecord failed cases HOT 27
- quiz formLink can be empty HOT 1
- sort quizzes in class object by startDate HOT 4
- PUT quizRecord successfully but still return 422 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnweb30-backend.