Skip to content

Get Started

Welcome to LaunchFa.st πŸ‘‹

Here’s a quick overview of the boilerplate. Follow along to get your app up and running.

Start a local server

  1. In your terminal, run the following commands:
npm i -g pnpm
pnpm install
pnpm dev
  1. Copy .env.example to .env
cp .env.example .env
  1. Open localhost:3000 to see your site. And voila!

Project Structure

  • /src/pages β†’ Pages (1 folder and/or 1 file.astro = 1 page)
  • /src/pages/api β†’ API calls (1 file = 1 API endpoint with multiple methods)
  • /src/components β†’ Astro Components
  • /src/lib β†’ Libraries helper functions (Stripe, Lemon Squeezy, Resend, Upstash, Google Auth, Email Auth, etc.)

Environment Variables (.env file)

Rename the .env.example file to .env. The file content should look like this:

HOST="0.0.0.0"
PORT="3000"

NODE_VERSION="18"

PUBLIC_FONT_NAME="Archivo"

SECRET_KEY="..."
PRIVATE_ACCESS_KEY="..."

RESEND_KEY="re_..."

UPSTASH_REDIS_REST_URL="https://...upstash.io"
UPSTASH_REDIS_REST_TOKEN="...="

GOOGLE_AUTH_ID="...-....apps.googleusercontent.com"
GOOGLE_AUTH_SECRET="...-...-..."
GOOGLE_AUTH_CALLBACK_URL="http://localhost:3000/api/auth/callback/google"

STRIPE_SECRET_KEY="sk_live_..."

SMTP2GO_USERNAME="..."
SMTP2GO_PASSWORD="..."

DEPLOYMENT_PLATFORM="netlify"

Now go ahead and follow this tutorial to launch your startup live within hours!