Skip to content

Commit 2a15e89

Browse files
authored
Merge pull request #32 from CS3219-AY2425S1/sean/auth-guard-4
Sean/auth guard 4
2 parents b03c71b + 2c158c5 commit 2a15e89

File tree

11 files changed

+434
-280
lines changed

11 files changed

+434
-280
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apps/question-service/.next/
2+
apps/question-service/next-env.d.ts
3+
apps/question-service/node_modules/
4+
services/question-service/cs3219-g24-firebase-adminsdk-9cm7h-b1675603ab.json
5+

apps/frontend/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ pnpm install
2323
Then, follow the `.env.example` file and create a `.env` file in the current directory. Replace the necessary values within.
2424

2525
```bash
26-
NEXT_PUBLIC_QUESTION_SERVICE_URL=http://localhost:8080
26+
NEXT_PUBLIC_QUESTION_SERVICE_URL="http://localhost:8080"
27+
NEXT_PUBLIC_USER_SERVICE_URL="http://localhost:3001/"
2728
```
2829

2930
First, run the development server:

apps/frontend/src/app/login/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import Header from "@/components/Header/header";
33
import { Button, Input, Layout, message, Form } from "antd";
44
import { Content } from "antd/es/layout/layout";
55
import "./styles.scss";
6-
import { useEffect, useState } from "react";
6+
import { useState } from "react";
77
import Link from "next/link";
8-
import TextArea from "antd/es/input/TextArea";
98
import { loginUser } from "@/app/services/user";
109
import { setToken } from "@/app/services/login-store";
1110
import { useRouter } from "next/navigation";

0 commit comments

Comments
 (0)