- Install Postgresql download link
- Install Nodejs link
- Install Angular link
- Setup Postgres Database
- Setup a user as
postgres
and passwordroot
- Ensure Server is running on port
5432
- Create Database Called
cs2102_project
- cd to express-rest-server folder and run
npm install
- run
npm run add-data
to add test data into server - run
npm start
to launch the rest server - go to
localhost:3000
to view the project site
- cd to cs2102-project-frontend and run
npm install
- run
ng serve -o
to start the server
All project details are coming from globalgiving and giving.sg
Theme - https://startbootstrap.com/template-overviews/sb-admin/ Icons - https://fontawesome.com/
- Only admins can handle a report - At the time of handling the report (Trigger: checkReportHandling, Function: handleReportCheck)
- Project cannot be pledged over its target amount (Trigger: checkPledgeAmt, Function: CheckProjectLimit)
- Project can only be pledged when it has started (Trigger: checkPledgesDate, Function: checkProjectDate)
- Logging for project and user (Trigger: - All the logging triggers, Functions: addUserLogging, addProjectLogging, logging)
- Auto refund project when project is banned (Trigger: refundPledges, function: autoRefundPledges)
- For user mode, use username:user and password: password to login in.
- For admin mode, use username:admin and password: password to login in.