diff --git a/backend/index.js b/backend/index.js index 15b577f4..2fea8fca 100644 --- a/backend/index.js +++ b/backend/index.js @@ -9,4 +9,6 @@ app.use(express.json()); app.use("/api/v1", mainRouter); -app.listen(3000); +app.listen(3000, () => { + console.log("Server is running on port 3000"); +}); diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index d2588414..17145fff 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -12,7 +12,7 @@ function App() { } /> } /> } /> - } /> + } /> diff --git a/frontend/src/pages/Signin.jsx b/frontend/src/pages/Signin.jsx index b46df25e..2439dbf6 100644 --- a/frontend/src/pages/Signin.jsx +++ b/frontend/src/pages/Signin.jsx @@ -3,23 +3,50 @@ import { Button } from "../components/Button"; import { Heading } from "../components/Heading"; import { InputBox } from "../components/InputBox"; import { SubHeading } from "../components/SubHeading"; +import axios from "axios"; +import { useNavigate } from "react-router-dom"; +import { useState } from "react"; const Signin = () => { + const [username, setUsername] = useState(""); + const [password, setPassword] = useState(""); + const navigate = useNavigate(); return (
- - + setUsername(e.target.value)} + /> + setPassword(e.target.value)} + />
-