Forx News is the course project for CIS 550 Databases & Information System (Fall 2022) at the University of Pennsylvania. It showcases a sample restaurant review website with features such as restaurant searching and recommendation using SQL.
This is an academic project for non-commercial purposes, and the project itself is not associated with any public datasets now that the course has ended and the datasets are no longer needed.
Please contact the author ([ruichen199801@gmail.com]()) if you have any questions or concerns.
We host our backend codes in the root project folder, and nest frontend codes inside the client
folder.
.
├── client # Frontend
│ ├── public # Static resources, such as icons and images
│ └── src
│ ├── components # Pages, components and styles
│ ├── hooks # Custom hooks
│ ├── constants # Constants
│ ├── utils # Helper functions
│ ├── App.js
│ ├── index.css
│ └── index.js
├── config # Env variables, such as API keys and secrets
├── middlewares # Custom middleware functions
├── routes # Route handlers
├── services # Third-party services, such as Passport.js
├── database.js # MySQL connection
├── index.js # Configures server, middlewares and routes
└── schema.js # Request schema validation rules
Make sure you have installed git
, node
, npm
before starting.
git clone git@github.com:ruichen199801/cis550-fa22-project.git
git checkout -b <feature branch name>
cd cis550-fa22-project && npm i
cd client && npm i
cd .. && npm run dev
git stash
git checkout main && git pull origin main
git checkout <your branch name> && git merge main
git stash pop
git status
, git branch
git add .
, git commit -m <commit message>
, git push
Archive branch according to https://gist.github.com/zkiraly/c378a1a43d8be9c9a8f9
npm ci
instead for subsequent npm install
)lsof -i tcp:<port>
, then kill -9 <PID>
pkill -f nodemon
, then restart server14.17.6
, as the app may not be compatible with newer versionsHeroku logs: heroku logs -t