Skip to content

Commit

Permalink
Merge pull request #9 from CS3219-AY2425S1/dev
Browse files Browse the repository at this point in the history
Milestone D2 Implementation
  • Loading branch information
dedsecrattle authored Sep 29, 2024
2 parents 7f07f5d + 99540bc commit 6b7b604
Show file tree
Hide file tree
Showing 48 changed files with 4,950 additions and 2,695 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +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: 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.
### 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

0 comments on commit 6b7b604

Please sign in to comment.