Starter Project with Authentication with Gatsby & AWS Amplify
Switch branches/tags
Nothing to show
Clone or download
Dabit
Latest commit 6c0f4f6 Sep 15, 2018
Permalink
Failed to load latest commit information.
src removed aws-exports Sep 15, 2018
.gitignore updated readme Sep 15, 2018
.prettierrc initial commit Aug 24, 2018
LICENSE initial commit Aug 24, 2018
README.md updated readme Sep 15, 2018
gatsby-browser.js initial commit Aug 24, 2018
gatsby-config.js initial commit Aug 24, 2018
gatsby-node.js initial commit Aug 24, 2018
gatsby-ssr.js initial commit Aug 24, 2018
package-lock.json initial commit Aug 24, 2018
package.json updated package.json Aug 25, 2018
yarn.lock initial commit Aug 24, 2018

README.md

Gatsby Auth Starter AWS

Gatsby starter with user authentication using Amazon Cognito.

Getting Started

  1. Create the project
gatsby new my-aws-project https://github.com/dabit3/gatsby-auth-starter-aws-amplify
  1. Change into the new directory
cd my-aws-project
  1. Change into the new directory
yarn
# or
npm install
  1. Install & configure the AWS Amplify CLI
npm i -g @aws-amplify/cli

amplify configure

To see a video of how to configure the CLI, click here

  1. Create a new AWS Amplify Project
amplify init

Here, walk through the following steps:

  • Enter a name for the project YOURPROJECTNAME
  • Choose your default editor: Visual Studio Code (or your editor of choice)
  • Choose the type of app that you're building javascript
  • What javascript framework are you using react
  • Source Directory Path: src
  • Distribution Directory Path: public
  • Build Command: npm run-script build
  • Start Command: npm run-script develop
  1. Add authentication to your AWS Amplify project
amplify auth add
  • Do you want to use the default authentication and security configuration? Y
  1. Push the updated project configuration to AWS
amplify push
  1. Then you can run it by:
gatsby develop