Skip to content

Commit f100e33

Browse files
committed
little changes
1 parent 679d708 commit f100e33

File tree

6 files changed

+28
-7
lines changed

6 files changed

+28
-7
lines changed

03/myApp/client/src/StartPage/Login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ export const Login = (props) => {
88
const [password, setPassword] = useState("");
99
const [email_validation, setEmail_validation] = useState(true);
1010
const [password_validation, setPassword_validation] = useState(true);
11+
1112
const { apiCall } = useApiContext();
1213
const { dispatch } = useAuthContext();
14+
1315
const navigate = useNavigate();
1416

1517
const emailChangeHandler = (event) => {
@@ -33,7 +35,7 @@ export const Login = (props) => {
3335
email,
3436
password,
3537
});
36-
console.log(status);
38+
console.log(status); // 200 | 400
3739
localStorage.setItem("user", JSON.stringify(data.user));
3840
dispatch({ type: "LOGIN", payload: data.user });
3941
navigate("/" + data.user.title.toLowerCase());

03/myApp/client/src/context/ApiContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ApiContextProvider = ({ children }) => {
1111
body,
1212
contentType = "application/json"
1313
) => {
14-
const customURL = BASE_URL + url;
14+
const customURL = BASE_URL + url; //
1515
const result = await fetch(customURL, {
1616
headers: {
1717
"Content-Type": contentType,

03/myApp/server/routes/users.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const { signupUser, loginUser } = require("../controllers/userController");
44

55
const router = express.Router();
66

7-
router.post("/login", loginUser); // http://3000/login
7+
router.post("/login", loginUser); // http://4000/application/../login
88

9-
router.post("/signup", signupUser); // http://3000/signup
9+
router.post("/signup", signupUser); // http://4000/signup
1010

1111
module.exports = router;

03/myApp/server/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ app.use((req, res, next) => {
2121
next();
2222
});
2323
app.use("/api/users", userRouter);
24+
// app.use("/api/items", ItemRouter);
2425
app.use("/api/appointments", appointmentRouter);
2526
app.use("/api/messages", messageRouter);
2627
app.use("/api/dives", diveRouter);

04/todoList/components/Task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
2+
import { View, Text, StyleSheet } from "react-native";
33

44
const Task = (props) => {
55
return (

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Course Details
2-
This course is designed to teach students how to work with TypeScript, JavaScript, NodeJS, React, ReactNative and some more.
32

4-
Every week we will add a new folder, with codes from the lecture and some homework.
3+
This course is designed to teach students how to work with TypeScript, JavaScript, NodeJS, React, React Native and some more.
54

5+
## Week 01
6+
7+
> JavaScript and TypeScript
8+
9+
## Week 02
10+
11+
> Introduction to ReactJS, building a small app with one page
12+
13+
## Week 03
14+
15+
> Intruduction to Express and MongoDB, building a server-client application with authontication.
16+
17+
## Week 04
18+
19+
> Introduction to React Native, building our first application
20+
21+
## Week 05
22+
23+
> React Native Router usage

0 commit comments

Comments
 (0)