Skip to content

Astra Agency Setup

This guide documents setting up the Astra Agency project using the BCMS CLI with the Next.js agency starter template, then customizing it to match the Med Spa Ranker design.

  • Node.js 18+
  • npm or pnpm
  • BCMS account (free at thebcms.com)
Terminal window
npx @thebcms/cli create next starter agency

When prompted:

  • Project name: Astra Agency (or your preferred name)
  • A browser window will open for BCMS authentication

The CLI will:

  1. Clone the agency starter from GitHub
  2. Create a new BCMS project
  3. Set up API keys automatically
Terminal window
cd "Astra Agency"
npm install
Terminal window
npm run dev

The site runs at http://localhost:3000

ResourceURL
Local Devhttp://localhost:3000
BCMS Dashboardhttps://app.thebcms.com/d/o/alive-wildfowl/i/astra-agency/bcms
Astra Agency/
├── bcms/ # BCMS types and configuration
│ └── types/ # Auto-generated TypeScript types
├── src/
│ ├── app/ # Next.js App Router pages
│ ├── components/
│ │ ├── layout/ # Header, Footer components
│ │ ├── medspa/ # Med Spa Ranker custom components
│ │ └── home-page/ # Original BCMS home components
│ └── styles/ # SCSS styles
├── public/ # Static assets
└── .env # Environment variables (auto-configured)

The project was customized to match the Med Spa Ranker website design with a dark theme and medical spa branding.

colors: {
primary: {
DEFAULT: '#4AB8B8', // Teal/cyan accent
dark: '#3A9A9A',
},
coral: {
DEFAULT: '#E8736C', // Coral/salmon for CTAs
dark: '#D4605A',
},
dark: {
DEFAULT: '#1A1F2E', // Main dark background
lighter: '#242B3D', // Slightly lighter sections
card: '#2A3248', // Card backgrounds
nav: '#0D1117', // Navigation background
},
}
ComponentPathPurpose
Herosrc/components/medspa/Hero.tsxFull-width hero with background image
Featuressrc/components/medspa/Features.tsx4-column feature cards
Testimonialssrc/components/medspa/Testimonials.tsxCustomer reviews with star ratings
Servicessrc/components/medspa/Services.tsxSEO, PPC, Website services
WebDesignsrc/components/medspa/WebDesign.tsxWeb design process section
Benefitssrc/components/medspa/Benefits.tsxTrust, Responsive, Convert cards
CTAsrc/components/medspa/CTA.tsx”Ready to Talk?” call-to-action
  • Header: Dark navigation bar with teal logo and coral CTA button
  • Footer: Centered layout with navigation links and legal pages
  • Body: Dark background (bg-dark) with white text
  1. Go to the BCMS Dashboard
  2. Select the astra-agency project
  3. Edit entries in the content types (Team, Services, Portfolio, etc.)
  4. Changes sync to your local dev server automatically
Terminal window
npm install -g vercel
vercel
Terminal window
npm run build
npm run start

Pull the latest types manually:

Terminal window
npx bcms --pull types --lng ts

Re-authenticate with BCMS:

Terminal window
npx @thebcms/cli login
  • Create BCMS project with Next.js agency starter
  • Install dependencies
  • Update color scheme to dark theme
  • Create Header with navigation and CTA
  • Create Hero section with background image
  • Create Features section (4 cards)
  • Create Testimonials section with reviews
  • Create Services section (SEO, PPC, Website)
  • Create Web Design section
  • Create Benefits section (Trust, Responsive, Convert)
  • Create CTA section
  • Update Footer with new branding
  • Add real images and content
  • Connect to BCMS for dynamic content
  • Deploy to production