alvinng4/CSCI2720-Project

CSCI2720 Project

★ 0Forks 0JavaScriptGitHub ↗Compare

README

CSCI2720 Project

This is a group project for CSCI2720.

Quick Start

Backend

To run the backend, run the following commands:

cd backend
npm install
npm run init-db // This will drop existing database with the name "culturalApp"
npm run dev -- [-s|-slow-internet]

-s|-slow-internet: Simulate slow internet by adding 1s delay to all backend request

Important

If you re-initialized the database after login, please logout your account on browser to prevent keeping the incorrect token ID.

Frontend

To run the frontend, run the following commands:

cd frontend
npm install
npm run dev

The site will be available at

http://localhost:5173/

Then, you may register a new account, or use the provided accounts:

Contributing

It is recommended to use linter and formatter. Simply use the following commands:

npm run lint
npm run format

Directory structure

This could be outdated. Check the report (pdf) in the latest release for the updated structure.

CSCI2720-Project/
├─ .gitignore
├─ LICENSE
├─ README.md
├─ data/                                  # Data preprocessing
├─ frontend/                              # Frontend
│   └─ src/                               # React components
│     ├─ main.jsx
│     ├─ App.jsx
│     ├─ index.css
│     ├─ TopNav.jsx
│     ├─ Other core components...
│     ├─ event/                           # Event-related files
│     ├─ location/                        # Location-related files
│     ├─ constants/                       # Reuseable constants
│     ├─ hooks/                           # Reuseable hooks
│     ├─ public/
│     ├─ lib/                             # Helper functions
│     └─ components/                      # Reuseable components
│        ├─ toggle-favourite.jsx          # Button to toggle favourite
│        ├─ page-shell.jsx
│        ├─ mode-toggle.jsx               # Shadcn dark mode toggle
│        ├─ theme-provider.jsx            # Shadcn dark mode theme provider
│        └─ ui/                           # Shadcn UI components
└─ backend/
    ├─ .env                               # Environment files storing secret keys
    ├─ init-db.js                         # Script for initializing database
    ├─ other config files...
    └─ src/                               # Source files for backend
    

Academic Honesty

I declare that the lab work here submitted is original except for source material explicitly acknowledged, and that the same or closely related material has not been previously submitted for another course. I also acknowledge that I am aware of University policy and regulations on honesty in academic work, and of the disciplinary guidelines and procedures applicable to breaches of such policy and regulations, as contained in the website.

University Guideline on Academic Honesty: https://www.cuhk.edu.hk/policy/academichonesty/

Group 33
Class/Section : CSCI2720
Date : 18 Dec 2025

Contributors

alvinng4LiClement0216zymsc03Darren-chan-jr

Issues