Skip to main content

HOW TO BUILD LOGIN PAGE AND SIGN UP PAGE IN REACT JS AND AWS AMPLIFY

 


STEPS TO BUILD LOGIN & SIGNUP PAGE
IN REACTJS,NODEJS USING AWS AMPLIFY IN VS CODE




SOFTWARE REQUIREMENTS

  • NODE JS 
  • AWS ACCOUNT
  • VISUAL STUDIO CODE
PLEASE BE FOLLOW THESE STEPS

1.     INSTALL NODEJS 

2.     CHECK VERSION OF NODEJS IN CMD -node --version

3.     CREATE AWS ACCOUNT(IF NOT HAVE OR TEMPORARY NEEDED,Dm me BUT,ITS COST)

4.     INSTALL VISUAL STUDIO CODE ( install Extension-Live server,AWS Toolkit)

5.     RUN THESE COMMAND IN VS CODE TERMINAL-NPM UPDATE-npm install npm -g

6.     INSTALL -AWSTOOLKIT EXTENSION IN VSCODE

7.     ENABLE SCRIPTING IN VS CODE -Set-ExecutionPolicy -Scope CurrentUser Unrestricted(paste these higlighted cmd in vs code Terminal)

8.     RUN THESE CMD IN TERMINAL-npx create-react-app projectname(Procedure)

9.     RUN IN VSCODE TERMINAL(INSIDE PROJECTNAME DIRECTORY)-amplify configure(AWS ACCOUNT NECESSARY)TO PERFORM THESE CMD

10. RUN IN VSCODE TERMINAL(INSIDE PROJECTNAME DIRECTORY)-amplify init

11. RUN IN VS CODE TERMINAL(INSIDE PROJECTNAME DIRECTORY)-amplify add auth

12. RUN IN VS CODE TERMINAL(INSIDE PROJECTNAME DIRECTORY)-amplify push

13. PASTE THESE PROGRAM IN APP.JS FILE-import React from 'react';

import logo from './logo.svg';

import './App.css';

import { Amplify } from 'aws-amplify';

import awsconfig from './aws-exports';

import "@aws-amplify/ui-react/styles.css";

import {

  withAuthenticator,

  Button,

  Heading,

  Image,

  View,

  Card,

} from "@aws-amplify/ui-react";

Amplify.configure(awsconfig);

 

function App({ signOut }) {

  return (

    <View className="App">

      <Card>

        <Image src={logo} className="App-logo" alt="logo" />

        <Heading level={1}>We now have Auth!</Heading>

      </Card>

      <Button onClick={signOut}>Sign Out</Button>

    </View>

  );

}

 

export default withAuthenticator(App);

14. RUN IN VS CODE TERMINAL(INSIDE PROJECTNAME DIRECTORY)-npm install --save aws-amplify @aws-amplify/ui-react

15. RUN IN VS CODE TERMINAL(INSIDE PROJECTNAME DIRECTORY)-npm start

Video Procedure below



Popular posts from this blog

ENABLE MULTI-FACTOR AUTHENTICATION IN LOGIN PAGE

 ENABLE MULTI-FACTOR AUTHENTICATION IN LOGIN PAGE 1.      Login Into The Amplify Console  2.      Setup Amplify Studio 3.      Enable Amplify Studio 4.      Open Coginito -  Choose Userpool,then click  SIGN-IN-EXPERIENCE  (Scrool Down)  And Edit MFA,And Switch To  Require MFA, Then Choose  Authentication apps  and Click  SAVE CHANGES 5.      Backend Environment-Launch Studio 6.      In Authentication -Click MULTI-FACTOR AUTHENTICATION-Choose  OPTIONAL and AUTHENTICATION APPLICATION  7.      Then ,Click  Deploy-Confirm Deployment 8.      Copy the cmd and Paste it into the terminal of Visual Studio Code[That File Directory] 9.      Again go, Cognito 10. In SIGN-IN-EXPERIENCE-(Scrool Down)  And Edit MFA,it shows op...

How to Install and Configure Docker on Different Operating Systems, Build, Run, and Manage Docker Containers with Basic Commands, Use Docker Images and Dockerfiles to Create Customized Containers ,Docker Compose to Define and Run Multi-Container Applications , Docker Networking to Connect Containers and Hosts , Docker Registries to Store and Share Images

DOCKER ENGINE                                         Dependencies are the software or libraries that are required to install or run another software. For example, to install Jenkins, you need to install Java first. To install Ansible, you need to install Python first. Sometimes, different software may require different versions of the same dependency. For example, some software may need Python 2, while others may need Python 3. However, you cannot have two versions of Python on the same operating system. Docker is a software that solves this problem by creating isolated environments called containers. Each container can have its own dependencies and software without affecting the others. Docker uses the base kernel of the operating system to create containers. Therefore, you can only run applications that are compatible with the base kernel. For example, if you have a Windows-bas...
Dhanaseenuvasan PY01AB5657 MODEL Ford Fiesta FASTAG BAL