Skip to content

CS3219-AY2425S1/cs3219-ay2425s1-project-g52

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date

CS3219 Project (PeerPrep) - AY2425S1

Group: G52

Note:

  • You can choose to develop individual microservices within separate folders within this repository OR use individual repositories (all public) for each microservice.
  • In the latter scenario, you should enable sub-modules on this GitHub classroom repository to manage the development/deployment AND add your mentor to the individual repositories as a collaborator.
  • The teaching team should be given access to the repositories as we may require viewing the history of the repository in case of any disputes or disagreements.

Local Setup Guide

This guide describes how to set up the Peerprep's frontend and backend locally.

Clone the Repository

In a command line, navigate to the destination folder and clone the repository from GitHub to your local machine:

git clone https://github.com/CS3219-AY2425S1/cs3219-ay2425s1-project-g52.git

then change directory into

cd cs3219-ay2425s1-project-g52

Installing dependencies and running the application

(FOR MILESTONE 3) There is containerization in this milestone with Docker, and there is a docker-compose.yml file to facilitate dependency installations and running of app.

Please obtain the frontend and backend .env files from a developer and drop it into these directories:

  • frontend
  • backend\user-service
  • backend\question-service

After placing the .env files, go to the root directory at cs3219-ay2425s1-project-g52.

Build the docker files contained in this project by using the command:

docker-compose build --no-cache

OR (For Mac users, you may need to remove the hypen):

docker compose build --no-cache

Spin up the docker-compose for the project with the command:

docker-compose up

OR (For Mac users, you may need to remove the hypen):

docker compose up

You should see three services being launched by Docker. The following are observable success messages recorded by docker:

For frontend: On successful launch, you should see the message in docker:

frontend-1          | You can now view question-service in the browser.
frontend-1          |
frontend-1          |   Local:            http://localhost:3000
frontend-1          |   On Your Network:  http://172.18.0.3:3000

For Backend User Service: On successful launch, you should see the message:

user-service-1      | MongoDB Connected!
user-service-1      | User service server listening on http://localhost:3001

For Backend question-service: On successful launch, you should see the message:

question-service-1  | Listening on localhost:8000
question-service-1  | Database connected..

Conclusion

You are now set up locally and can explore the app. You can check out our developer guide to learn more.

Further enhancement to be made in future updates.

About

nus-cs3219-ay2425s1-cs3219-ay2425s1-project-project-template created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 63.3%
  • JavaScript 25.7%
  • CSS 7.6%
  • Dockerfile 2.5%
  • HTML 0.9%