Git Product home page Git Product logo

cognito-vue-bootstrap's Introduction

cognito-vue-bootstrap

This application illustrates how to use the Amazon cognito service with vue.js, it includes signup, login, logout and account verification using email / sms codes. It uses bootstrap for layout.

overview

This example application currently illustrates the following:

  • Sign Up for an account
  • Verify your account by entering verification code which has been sent to you via emailed or SMS
  • Dashboard which requires authentication to access, currently this just shows your JWT token
  • Log In to the application
  • Log Out of the application

Demo version is located at https://cognito-vue-bootstrap.wolfe.id.au/

Build Setup

Before you start have a read over What is Amazon Cognito?

To setup this project you first need to configure the Cognito service in the AWS console then create .env file.

There are two sections to the Cognito configuration:

  1. User Pools
  2. Federated Identity Pools

These are configured in that order and during the configuration process you will extract the following properties and create the .env using the .env.example I have included.

AWS_REGION=us-west-2
COGNITO_USER_POOL_ID=us-west-2_xxx
COGNITO_CLIENT_ID=xxx
COGNITO_IDENTITY_POOL_ID=us-west-2:xxxx

I use yarn to build and run this project.

# install dependencies
yarn install

# serve with hot reload at localhost:8080
yarn dev

# build for production with minification
yarn build

Todo

  • Separate out configuration and make it easier!
  • Sort out Testing/Mocking
  • Add password change and recovery
  • Integrate congnito sync for user profile information

For a more detailed explanation on how things work, checkout:

License

This project is released under the Apache License, Version 2.0.

cognito-vue-bootstrap's People

Contributors

wolfeidau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.