How atsurak/marscamp works
Project Type and Purpose
• From the file tree and README, this is a full‑stack “Mars Camp” online course portal.
• The frontend is a React single‑page application (SPA) under the marscamp/ directory.
• The backend is a Node.js + Express API under Server/, connected to a MySQL database.
• Purpose: three user roles (Admin, Faculty, Student) interact via SPA → REST API → relational DB.
File Structure
• Top‑level:
• marscamp/ → React app (with public/, src/, components, pages, actions, forms).
• Server/ → Express server (with routes/, queries/, scripts/, server.js).
• assets/demo/ → static demo video.
• Backend conventions:
• Server/routes/*.js define REST endpoints by resource (auth, courses, instructor, student, etc.).
• Server/queries/*.sql hold DDL and DML for DB initialization.
• Server/scripts/mysql.js exports a MySQL connection pool.
• Frontend conventions:
• src/actions/ likely Redux or fetch wrappers for each user role.
• src/components/ UI building blocks (cards, menus, layout).
• src/forms/ CRUD forms for announcements, courses, posts, tests, feedback.
• src/pages/ route targets (SignIn, Home, Course, Forum, Test, etc.).
Key README Insights
• Emphasis on relational database learning; uses MySQL with initialization scripts.
• Setup involves running init.sql to create tables and manual admin signup.
• API runs at localhost:5000, frontend at localhost:3000.