- Solution 🖥️ for
full stack applicationbuild, ship and deployment. - You can think of AWS Amplify as a JavaScript library that lets you build and deploy serverless applications in the cloud. It is a full-stack application platform that combines both client-side and server-side code.
- Node.js v14.x or above
- npm v6.14.4 or above
- git v2.14.1 or above
aws-cli- Command Line Tool (CLI) 👨💻️ to interact and manage AWS services from local terminal.
- Performs tasks like creating, configuring, and managing AWS resources.
- Cross Platform, Access AWS APIS, Support for MFA 🔐️, Scripting and Automation, Customization.
- Installing AWS CLI on ubuntu
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install
- Use below command to configure 🔧️ AWS profile. Please make sure to create and use access key for CLI.
aws configureProvide Access key and Secret
Installing aws-amplify package.
npm install -g @aws-amplify/cli
npm i aws-amplifyUse below command to initalize aws amplify 📱️ app.
amplify initNote : All below Command Suppose to run in Root Directory of Application
Use below command to add APIs. 📩️
amplify api addProvide required details.
- To do Testing Locally use
mockcommand. ⚔️
amplify mock apiTo check application status 📊️ use below command. Command suppose to run in root directory 📂️ of application.
amplify statusUse below command to push changes to cloud.
amplify push- Use below lines to configure amplify in Front end App.
import awsExports from "./aws-exports";
Amplify.configure(awsExports);- Use below command to specify hosting method.
amplify add hosting- Provide required details.
- Use below command to push front end
amplify publishauth🔐️ command is used to add auth to application. Secure you app with AWS Cognito Serrvice.
amplify add auth- Navigate 👉️ to root folder of Application and use following command.
amplify delete- Clone ⬇️
- Navigate to root directory 👉️
- Use below command
amplify publish