git config --global user.name "Sathiyapramod"
git config --global user.email "your mail id"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Your first and last name", | |
"label": "", | |
"picture": "", | |
"email": "Your email address", | |
"phone": "A phone number, with any formatting you like. E.g. (555) 555-5555.", | |
"degree": "", | |
"website": "Your website URL", | |
"summary": "A one-sentence to one-paragraph overview text. Do not include any line-breaks.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, | |
"moduleDetection": "force" /* Control what method is used to detect module-format JS files. */, | |
/* Modules */ | |
"module": "CommonJS" /* Specify what module code is generated. */, | |
"rootDir": "./" /* Specify the root folder within your source files. */, | |
"outDir": "./build" /* Specify an output folder for all emitted files. */, | |
"importsNotUsedAsValues": "remove" /* Specify emit/checking behavior for imports that are only used for types. */, | |
"isolatedModules": false /* Ensure that each file can be safely transpiled without relying on other imports. */, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file path - redux/modules/auth.js | |
// To declare and initiate the redux variables | |
//actions | |
export const USERNAME = "project/signin/username"; | |
export const PASSWORD = "project/signin/password"; | |
//actions type | |
export const fetchUsername = (input) => { | |
return { type: USERNAME, payload: input }; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import React, { useState } from "react"; | |
import "./Login.css"; | |
import Link from "next/link"; | |
import { fetchUsername, fetchPassword } from "@/redux/modules/auth"; | |
import { useRouter } from "next/navigation"; | |
import { useDispatch } from "react-redux"; | |
export default function Login() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// combine reducers | |
import { combineReducers } from "redux"; | |
import reducer from "./auth"; | |
export default combineReducers({ | |
reducer, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//redux/provider.js | |
"use client"; | |
import React from "react"; | |
import { Provider } from "react-redux"; | |
import store from "./index"; | |
export function ReduxProvider({ children }) { | |
return <Provider store={store}>{children}</Provider>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReduxProvider } from "@/redux/provider"; | |
import Login from "./components/Login"; | |
export default function RootLayout() { | |
return ( | |
<html lang="en"> | |
<body> | |
<ReduxProvider> | |
<Login /> | |
</ReduxProvider> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"target": "ES2020", | |
"useDefineForClassFields": true, | |
"lib": ["ES2020", "DOM", "DOM.Iterable"], | |
"module": "ESNext", | |
"skipLibCheck": true, | |
/* Bundler mode */ | |
"moduleResolution": "bundler", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Node.js 14 image. | |
# can't find one for 16 | |
# https://hub.docker.com/_/node | |
FROM node:18 | |
# Create and change to the app directory. | |
WORKDIR /usr/src/app | |
# Copy application dependency manifests to the container image. |
OlderNewer