GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fuchenxu2008/U-Circle: CSE208 Group Project - Delta

BranchesTags
Open more actions menu

Latest commit

 

History

84 Commits
84 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
app
app
 
 
internals
internals
 
 
server
server
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

U-Circle

Steve

U-Circle is a SPA based Progressive Web App which is built using MERN stack on top of React-Boilerplate. It is dedicated to providing a platform in XJTLU for answering your enquiries regarding academic studies and occupational queries. Users can share questions and answers with alumnus and students in XJTLU. The project is still under development and unfinished parts of it would be the future work of CSE208 group project.

Instruction on local setup

  1. Open Terminal or Bash
  2. git clone [email protected]:fuchenxu2008/U-Circle.git to clone this repository
  3. cd U-Circle
  4. yarn to install all NPM dependencies.
  5. yarn start to start development server at port 3000.
  6. Go to http://localhost:3000 to access the application locally.

Online Version

Access online version at https://quora.kyrie.top

Some functions logic

Subscribe/Unsubscribe Question
  1. Recieve HTTP request from user through API end point.
  2. Extract user ID and question ID to subscribe from request.
  3. Find that question record by the given question ID in the database.
    1. Check if subscribers property of the question object includes the given user ID already.
    2. If given user ID already exists, remove it from the list to unsubscribe.
    3. If not, add given user ID to the list of subscribers of the question to subscribe.
  4. Save the modified new question object back to the database.
  5. On successful save, send the updated question as response to front end.
  6. In case of any error, send errored response with status code 400 to front end.
Search Question - Backend
  1. Recieve HTTP request from user search query through API end point.
  2. Extract type, major, keyword from request which refer to question properties.
  3. Escape search query's special characters to avoid Regex(Regular Expression) evaluation errors.
  4. If major or keyword appears to be empty, ignore it from search terms.
  5. Find the matching questions based on the search terms using Regex(Regular Expression).
  6. Send the result to user on success and error on failure.
Notification - Backend
Send Notification
  1. When user answer a question, construct a notification object including information of the answerer, the user or users to be notified and the related question.
  2. Pass the notification object and server websocket to the controller.
  3. Iterate the target users group, for each of the users, send them a notification through websocket and create a record in database with the notification object and intialize its property markRead as false.
Mark Notification as read
  1. Find the notification model in database by given user ID and related question ID
  2. For each question found, modify its property markRead to true.
  3. Save the updated notification objects back to database.

About

CSE208 Group Project - Delta

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.