statistics in vBulletin
  1. This site is not associated with any agent or consultant and colleges/universities. Views & Opinions expressed here are solely author's comment and Topuniversityforum.in is not responsible for them. Please don't make derogatory or abusive remarks against anyone.
  2. Prepare for GMAT, CAT, IIT, PMT & Other Entrance Exams. Post your questions and get answers. Collaborate, Learn & Grow.
    Dismiss Notice
  3. Hi Please download our Android App and enjoy the benefit of this forum on your smartphone. Download in Playstore
    Dismiss Notice
  4. Find Best Colleges in your Area, review them and share feedback.
    Dismiss Notice

How to create project with AWS Amplify & Javascript

Discussion in 'Programming/Development/Coding' started by Sunil, Nov 24, 2020.

  1. Sunil

    Sunil Member

    Hi, How to create project with AWS Amplify & Javascript?

    Well practically you can use AWS amplify to create projects for iOS, android & javascript. It's a very handy tool which can be used to quickly create projects with required frameworks and libraries like vue, angular and react.

    In this post, i am using vuejs, but amplify commands are constant and you will always use them even if you are using angular or react.

    Code:
    amplify init
    Note: It is recommended to run this command from the root of your app directory
    ? Enter a name for the project NAMEOFYOURPROJECT
    ? Enter a name for the environment dev
    ? Choose your default editor: Visual Studio Code
    ? Choose the type of app that you're building javascript
    Please tell us about your project
    ? What javascript framework are you using vue
    ? Source Directory Path:  src
    ? Distribution Directory Path: dist
    ? Build Command:  npm run-script build
    ? Start Command: npm run-script serve
    Using default provider  awscloudformation
    
    For more information on AWS Profiles, see:
    https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
    
    ? Do you want to use an AWS profile? Yes
    ? Please choose the profile you want to use select a profile
    Adding backend environment dev to AWS Amplify Console app:
    - Initializing project in the cloud...
    "amplify status" will show you what you've added already and if it's locally configured or deployed
    "amplify add <category>" will allow you to add features like user login or a backend API for example-amplify add api
    "amplify push" will build all your local backend resources and provision it in the cloud
    "amplify console" to open the Amplify Console and view your project status
    "amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud.

    You can quickly add authorization, predictive analytics using aws amplify.

    To create project with vuejs, use following commands;
    Code:
    npm install -g @vue/cli
    vue create myamplifyproject
     

Share This Page