Skip to main content

Account Setup

Now that your development tools are installed, let's set up the online accounts you'll need for this workshop. We'll create and configure both GitHub and Cloudflare accounts.

1. Cloudflare Account Setup

What is Cloudflare? Cloudflare is a cloud platform that provides serverless computing, CDN, and other web services. We'll deploy our application to Cloudflare's global network.

Create Cloudflare Account

Already have a Cloudflare account?

Create New Account:

  1. Visit cloudflare.com
  2. Click "Sign up"
  3. Enter your email address and create a password
  4. Verify your email address
  5. Complete the account setup process

cloudflare signup

2. Wrangler Authentication

Now we'll connect the Wrangler CLI tool to your Cloudflare account for seamless deployment.

Authenticate Wrangler

Run the authentication command:

terminal
wrangler login

wrangler login

Complete Authentication Process

What happens next:

  1. Your default web browser will open automatically
  2. You'll be redirected to Cloudflare's authentication page
  3. If you're not already logged in, enter your Cloudflare credentials
  4. Review the permissions Wrangler is requesting

wrangler login web

Grant Permission:

  1. Review the permissions carefully
  2. Click "Allow" to grant Wrangler access to your Cloudflare account
  3. You should see a success message in your browser
  4. Return to your terminal

wrangler login success

Verify Authentication

Confirm the authentication was successful:

terminal
wrangler whoami

Expected output: Your Cloudflare account email address

Example:

👋 You are logged in with an OAuth Token, associated with the email 'your-email@example.com'!

wrangler whoami

Troubleshooting Authentication

Browser doesn't open automatically:

terminal
wrangler login --browser=false

This will provide a manual login URL to copy and paste.

wrangler login browse false

Authentication fails
  • Check your internet connection
  • Disable VPN if you're using one
  • Try a different browser
  • Clear browser cache and cookies for cloudflare.com
Permission denied errors
  • Ensure you're using the correct Cloudflare account
  • Verify your account has the necessary permissions
  • Try logging out and back in: wrangler logout then wrangler login

Need Help?

GitHub Issues:

Cloudflare Issues:

Wrangler Issues:

Your accounts are the foundation for everything we'll build. Great job getting this set up! 🚀