Overview
The egghead-next project serves as the front-end for egghead.io. To set up the development environment, various steps are outlined including installing system-level requirements, configuring environment variables, setting up egghead-rails, and running the application using pnpm.
Features
- Development Environment Setup: Guide to installing system-level requirements and verifying base installations.
- Vercel Integration: Instructions to connect the development environment to Vercel.
- egghead-rails Setup: Walkthrough of setting up egghead-rails and starting the backend server.
- Stripe Webhook Integration: Details on connecting Stripe webhooks and updating necessary values.
- Start Developing: Instructions for running the egghead-next project once egghead-rails is running.
- Handy Commands: Reference to primary development commands in the package.json scripts section.
Installation
- Run
bin/validate
to ensure system-level requirements like Homebrew, Node, and pnpm are installed. - Connect the development environment to Vercel:
- Run
vercel login
to log in and verify. - Execute
vercel link
to choose the eggheadio organization and the egghead-io-nextjs project. - Use
vercel env pull
to bring in necessary development environment variables.
- Run
- Set up egghead-rails by following the setup instructions and start it with
foreman start -f Procfile.dev
. - Ensure the required values for Stripe webhooks are updated:
STRIPE_WEBHOOK_SECRET
(generated bystripe listen
command).NEXT_PUBLIC_STRIPE_PUBLIC_KEY
&STRIPE_SECRET_KEY
(found on Stripe Development API Keys page).- Update
webhook_signing_secret
inconfig/credentials.yml.enc
in egghead-rails.
- After egghead-rails setup, run
pnpm install && pnpm dev
to start developing. - Refer to the scripts section in
package.json
for primary development commands.
Summary
The egghead-next project serves as the front-end for egghead.io, with detailed instructions provided for setting up the development environment. From installing system-level requirements to configuring Stripe webhooks, the guide covers the necessary steps to get started with development. By ensuring that egghead-rails is running and setting up the required environment variables, developers can efficiently run and test the egghead-next project using pnpm commands.