Giter Site home page Giter Site logo

kingjay66 / egghead-next Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skillrecordings/egghead-next

0.0 1.0 0.0 142.1 MB

The frontend for egghead.io.

Home Page: https://egghead.io

License: Other

Shell 0.12% JavaScript 34.25% TypeScript 65.23% CSS 0.40%

egghead-next's Introduction

Welcome to the egghead-next project—the front-end for egghead.io.

Development

If you've already set up your local development environment, you can run:

yarn dev

Setting Up Your Development Environment

To run this app locally for development, you'll need a few things. One of those is a working installation of egghead-rails which provides the back-end functionality.

1. System-level stuff.

For the basic stuff like Homebrew, Node, Yarn, etc., run bin/validate to ensure you have the base requirements. It will help you install anything that's missing.

2. Vercel & Develoment Environment Variables

Before you run the following commands to connect the development environment to Vercel

vercel login will prompt you to login and verify vercel link will ask you to choose the eggheadio organization and the egghead-io-nextjs project. vercel env pull will bring in the development environment variables you need to get going.

3. egghead-rails

You'll need to walk through the egghead-rails setup instructions. Once it's running, you should be able to start it by running the following from the project root:

foreman start -f Procfile.dev

If you want to test something that requires Stripe webhooks to be connected, you'll need to use the stripe listen command. Review docs/stripe/webhook.md for the details.

Important: For the Stripe webhook process to work, you'll want to ensure that the following values are updated to the correct latest values:

  • STRIPE_WEBHOOK_SECRET will be provided by the stripe listen command in egghead-rails that will display a 90-day secret that it auto-generates for connecting webhooks.
  • NEXT_PUBLIC_STRIPE_PUBLIC_KEY & STRIPE_SECRET_KEY can be found on the Stripe Development API Keys page

You'll also need to ensure that the webhook_signing_secret is updated in the egghead-rails config/credentials.yml.enc. For instructions on that, view the config/credentials/editing_credentials.md file in egghead-rails.

4. Start Developing

To run egghead-next once egghead-rails is running, use:

yarn install && yarn dev

5. Handy Commands

View the scripts section of package.json for the primary development commands to run with yarn.

egghead-next's People

Contributors

joelhooks avatar drshpongle avatar jbranchaud avatar vojtaholik avatar zacjones93 avatar depfu[bot] avatar creeland avatar laurosilvacom avatar nicollguarnizo avatar johnlindquist avatar lsminter avatar maggieappleton avatar kodiakhq[bot] avatar theianjones avatar dealingwith avatar tayiorbeii avatar willjohnsonio avatar jh3y avatar parkergits avatar eric-hc avatar laurieontech avatar vontajamal avatar arthurdenner avatar 5t3ph avatar samuelhulick avatar garrettdimon avatar dijonmusters avatar lyssenkoalex avatar mikesherov avatar stefanselftaught avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.