Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a6e9a98
GitHub Classroom Feedback
github-classroom[bot] Sep 6, 2024
661709f
Setting up GitHub Classroom Feedback
github-classroom[bot] Sep 6, 2024
bf1b7dc
add deadline
github-classroom[bot] Sep 6, 2024
80ce360
init frontend react app
Singa-pirate Sep 16, 2024
c0132af
Set up prettier
Singa-pirate Sep 16, 2024
ab933bb
Set up github lint workflow and test
Singa-pirate Sep 16, 2024
a497aff
Fix syntax
Singa-pirate Sep 16, 2024
457cf0d
Fix issue and test
Singa-pirate Sep 16, 2024
d327d00
Fix style
Singa-pirate Sep 16, 2024
2ae3aca
Migrate frontend app to typescript
Singa-pirate Sep 16, 2024
c8be0a4
Update linter commannd
Singa-pirate Sep 16, 2024
7f07f5d
Merge pull request #2 from CS3219-AY2425S1/jiale/frontend-init
Sep 16, 2024
548a8d6
QuestionList init
yitong241 Sep 19, 2024
c850182
prettify the code
yitong241 Sep 19, 2024
7e7c4ec
add sorting
yitong241 Sep 20, 2024
753624e
Update dummy QuestionList
yitong241 Sep 20, 2024
3ff4943
small fix
yitong241 Sep 20, 2024
2e9a164
another small fix
yitong241 Sep 20, 2024
179c5bf
add basic REST API for MongoDB
Echomo-Xinyu Sep 21, 2024
92c45ab
Merge pull request #3 from CS3219-AY2425S1/question-service
Sep 21, 2024
46d75c7
Fix schema & refactor
dedsecrattle Sep 22, 2024
bf94db0
Fix logical issues
dedsecrattle Sep 22, 2024
b27104e
Setup questionDB
dedsecrattle Sep 22, 2024
a09228f
Update env template
dedsecrattle Sep 24, 2024
167990d
Add Dockerfile
dedsecrattle Sep 24, 2024
c7a61ce
Init MUI and draft nav bar
Singa-pirate Sep 25, 2024
a526491
Add home page welcome section
Singa-pirate Sep 25, 2024
da2c591
Add logo and footer
Singa-pirate Sep 26, 2024
18f1997
Add button logics and main dialog
Singa-pirate Sep 26, 2024
f9ecc0f
Add question list component
Singa-pirate Sep 26, 2024
1abecc0
Abstract out API call logic into service class
Singa-pirate Sep 26, 2024
fbb3d49
Merge remote-tracking branch 'origin/question-service' into yitong/fr…
Singa-pirate Sep 26, 2024
84f3ba4
Merge pull request #4 from CS3219-AY2425S1/prabhat-backend
Singa-pirate Sep 26, 2024
f21f11c
Merge remote-tracking branch 'origin/dev' into yitong/frontend
Singa-pirate Sep 26, 2024
93091b6
Integrate with backend GET api
Singa-pirate Sep 26, 2024
529ba5c
Update question list for other API calls
Singa-pirate Sep 27, 2024
6730e79
change the theme of the question list
yitong241 Sep 27, 2024
4925220
Add frontend input restrictions and error display
Singa-pirate Sep 27, 2024
d31ff00
Merge branch 'yitong/frontend' of https://github.com/CS3219-AY2425S1/…
Singa-pirate Sep 27, 2024
74e267f
Reverse conflicted changes
Singa-pirate Sep 27, 2024
997e9ef
Add confirmation dialog for delete
Singa-pirate Sep 27, 2024
201a0f9
Fix minor css style issues
Singa-pirate Sep 27, 2024
2abfd2f
Reduce max input lengths
Singa-pirate Sep 27, 2024
7a07003
Fix style
Singa-pirate Sep 27, 2024
802b73f
Merge pull request #6 from CS3219-AY2425S1/yitong/frontend
Sep 27, 2024
3f761b9
Bug fix questionId
dedsecrattle Sep 27, 2024
07913de
Fix page title and favicon
dedsecrattle Sep 27, 2024
714fac0
Fix homepage display issues
Singa-pirate Sep 28, 2024
fea351f
Merge pull request #7 from CS3219-AY2425S1/prabhat-backend
Sep 28, 2024
99540bc
Merge pull request #8 from CS3219-AY2425S1/jiale/homepage-fix
Sep 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on:
push:
branches-ignore:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"

- name: Install dependencies
run: npm install
working-directory: ./frontend

- name: ESLint
run: npx eslint src/**/*.{ts,tsx}
working-directory: ./frontend

- name: Prettier
run: npx prettier --check .
working-directory: ./frontend
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/bzPrOe11)

# CS3219 Project (PeerPrep) - AY2425S1
## Group: Gxx

### 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.
## Group: G06

### 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.
1 change: 1 addition & 0 deletions backend/question-service/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
6 changes: 6 additions & 0 deletions backend/question-service/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DB_CLOUD_URI=<CONNECTION_STRING>
DB_LOCAL_URI="mongodb://127.0.0.1:27017/peerprepQuestionServiceDB"
PORT=3000

# Will use cloud MongoDB Atlas database
ENV=PROD
36 changes: 36 additions & 0 deletions backend/question-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Ignore node_modules folder
node_modules/

# Ignore the build output (dist directory)
dist/

# Ignore TypeScript cache files
*.tsbuildinfo

# Ignore environment variable files
.env

# Ignore log files
*.log
npm-debug.log*

# Ignore OS-specific files
.DS_Store
Thumbs.db

# Ignore IDE/editor specific files
.vscode/
.idea/

# Ignore coverage folder for testing reports
coverage/

# Ignore yarn lock file (optional, if using npm)
yarn.lock

# Ignore the typescript declaration map files
*.map

# Ignore temporary files created by editors
*.swp
*~
13 changes: 13 additions & 0 deletions backend/question-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20-alpine

WORKDIR /app

COPY package*.json .

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "run", "start"]
Loading