创建了一个宿舍应用程序管理网络应用程序,用于跟踪学生的位置,根据房间号记录学生的出勤情况,并下载数据。
MERN-ish chaos, now with Vite — Express + MongoDB in the back, React + Redux up front. No Next.js; we’re not that fancy. Yet.
Feed the machine
npm install && npm install --prefix frontendSummon Mongo
Have MongoDB running somewhere. If it’s not up, the API will ghost you harder than a bad roommate.
Whisper secrets (repo root, .env)
NODE_ENV=development
PORT=5000
MONGO_URI=mongodb://127.0.0.1:27017/your_db_name
JWT_SECRET=make_it_long_and_random_no_password123_plsHit go
npm run devProduction build (when you’re showing off):npm run build --prefix frontend then NODE_ENV=production npm start
| Register / login (navbar stays minimal until you’re in — we’re not nosy) | |
| Student CRUD + details | |
| Update student whereabouts | |
| ✅ | Daily attendance |
| Analysis views | |
| CSV export for attendance | |
| ️ | Nuke old attendance by “last N days” |
| Admin: user list + toggle admin status |
PRs welcome. Big ideas? Open an issue first so we can panic together constructively.
Tests: npm test --prefix frontend (Vitest; add tests if you’re feeling brave).
暂无开放 Issues,或尚未同步最近议题。