http://fdcamplify.s3-website-us-east-1.amazonaws.com
npm install -g @vue/cli
- Clone project and install dependencies
$ git clone https://github.com/FreelanceDeveloperCoach/fdc-web-ui.git
$ cd fdc-web-ui
$ npm install
- Intialize a new AWS Amplify CLI project:
$ npm install -g @aws-amplify/cli
Configures the AWS access credentials, AWS Region and sets up a new AWS User Profile
$ amplify configure
Initializes a new project, sets up deployment resources in the cloud and prepares your project for Amplify.
$ amplify init
Add auth
$ amplify add auth
Change Cognito User Attributes to Email address or phone number
add this code in the amplify/backend/auth/cognitoxxxx/cognitoxxxx-cloudformation-template.yml
UsernameAttributes:
- "email"
example
UserPool:
# Created upon user selection
# Depends on SNS Role for Arn if MFA is enabled
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: !Ref userPoolName
Schema:
-
Name: email
Required: true
Mutable: true
AutoVerifiedAttributes: !Ref autoVerifiedAttributes
UsernameAttributes:
- "email"
EmailVerificationMessage: !Ref emailVerificationMessage
EmailVerificationSubject: !Ref emailVerificationSubject
Provisions cloud resources with the latest local developments.
$ amplify push
$ npm run serve
$ npm run build
$ sh deployment.sh prod
$ npm run test