Homework setup
There's a couple things I'd like you to set up before the workshop. Experience has shown setting this up during the workshop distracts from the exercises.
Create a Netlify account go to netlify.com and follow their signup instructions. You shouldn't need to pay.
- Install netlify cli Netlify's CLI tool is great. Install it with
npm i -g netlify-cli
oryarn global add netlify-cli
- Install netlify cli Netlify's CLI tool is great. Install it with
Create a Vercel account go to vercel.com and follow their signup instructions. You shouldn't need to pay.
- Install vercel cli Vercel has a fantastic CLI tool. Install it with
npm i -g vercel
oryarn global add vercel
- Install vercel cli Vercel has a fantastic CLI tool. Install it with
Create an AWS account go to aws.amazon.com and create an account. They ask for a credit card and we'll keep everything within the free tier.
Configure Serverless Framework we'll use the opensource serverless framework to play with AWS Lambda. It's a great alternative to AWS's CloudFormation templates, I'll explain why.
Create an Admin IAM user
Login to your AWS account and go to the Identity & Access Management (IAM) page.
Click on Users and then Add user. Enter a name in the first field to remind you this User is related to the Serverless Framework, like
serverless-admin
. Enable Programmatic access by clicking the checkbox. Click Next to go through to the Permissions page. Click on Attach existing policies directly. Search for and select AdministratorAccess then click Next: Review. Check to make sure everything looks good and click Create user.View and copy the API Key & Secret to a temporary place. You'll need it in the next step.
Install serverless cli with
npm i -g serverless
oryarn global add serverless
Configure serverless cli run this command with your keys from previous step
serverless config credentials --provider aws --key YOUR_KEY --secret YOUR_SECRET
Other housekeeping
After you've created your accounts and configured the CLI tools, make sure your computer can do the following:
JavaScript development. Make sure you can run
create-react-app something
. If that works, your computer has all pre-requisites installed.Git. Just in case you don't have it yet, make sure your computer works with git. We've had folks switch from macos to windows just before the workshop before and then nothing worked. No fun.
I'm going to be using a Mac and giving instrutions using the terminal. As long as you can follow NPM install and Git instructions, stick with the tools you're used to.