Skip to content

Commit e50b35a

Browse files
authored
Merge pull request #20 from CS3219-AY2425S1/staging
Staging
2 parents 128b83d + de0ecb2 commit e50b35a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7677
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/bzPrOe11)
2+
23
# CS3219 Project (PeerPrep) - AY2425S1
3-
## Group: Gxx
44

5-
### Note:
6-
- You can choose to develop individual microservices within separate folders within this repository **OR** use individual repositories (all public) for each microservice.
7-
- 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.
8-
- 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.
5+
## Group: G24
6+
7+
### Note:
8+
9+
- You can choose to develop individual microservices within separate folders within this repository **OR** use individual repositories (all public) for each microservice.
10+
- 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.
11+
- 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.

apps/question-service/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Replace with the corresponding url, credentials and endpoint
2+
NEXT_PUBLIC_API_URL="http://localhost:8080/"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next/typescript"]
3+
}

apps/question-service/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
.env
31+
32+
# vercel
33+
.vercel
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts

apps/question-service/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
This is the frontend for the question service.
2+
3+
## Tech Stack
4+
5+
- Next.js
6+
- TypeScript
7+
- Ant Design
8+
- SCSS
9+
10+
## Getting Started
11+
12+
First, install the dependencies:
13+
14+
```bash
15+
npm install -g pnpm
16+
17+
pnpm install --frozen-lockfile
18+
19+
# if pnpm install --frozen-lockfile fails, try running
20+
pnpm install
21+
```
22+
23+
Then, follow the `.env.example` file and create a `.env` file in the current directory. Replace the necessary values within.
24+
25+
```bash
26+
NEXT_PUBLIC_API_URL=http://localhost:8080
27+
```
28+
29+
First, run the development server:
30+
31+
```bash
32+
pnpm dev
33+
```
34+
35+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
36+
37+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
38+
39+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
export default nextConfig;

apps/question-service/package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "web",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@ant-design/cssinjs": "^1.21.1",
13+
"@ant-design/icons": "^5.5.1",
14+
"@ant-design/nextjs-registry": "^1.0.1",
15+
"antd": "^5.20.6",
16+
"next": "14.2.13",
17+
"react": "^18.2.0",
18+
"react-dom": "^18.2.0",
19+
"sass": "^1.79.2"
20+
},
21+
"devDependencies": {
22+
"@types/node": "^20",
23+
"@types/react": "^18.3.8",
24+
"@types/react-dom": "^18.3.0",
25+
"eslint": "^8",
26+
"eslint-config-next": "14.2.13",
27+
"typescript": "^5"
28+
},
29+
"packageManager": "[email protected]+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
30+
}

0 commit comments

Comments
 (0)