/nextjs-101

Primary LanguageJavaScriptMIT LicenseMIT

Next.js 101 - mini course app

This is Next.js app that has been used to create the Next.js 101.

Feel free to use it if you want to create a simple free course for your audience.

Templates

Coming Soon

Coming Soon

Creator Bio

Creator Bio

Get Started

Get Started

Unit detail view

Unit Detail

Course navigation

Course Navigation

Celebration

Celebration

How to use it

  • Add files for each unit in the _posts folder
  • Specify module of each unit
    • Units will be grouped by module in the sidebar
  • Include videoId or leave empty
  • Update site.config.js with your own details
  • Set video type youtube or vimeo and include id for each video
  • Have fun :)

Feedback Fish API

If you want to use the "Give me feedback" button in the sidebar you will need to add NEXT_PUBLIC_FEEDBACK_FISH_ID to the environment variables. For example

NEXT_PUBLIC_FEEDBACK_FISH_ID=abcdefghijk

ConvertKit API

If you want the subscribe form to be integrated with ConvertKit add the following environment variables.

CONVERTKIT_API_URL=https://api.convertkit.com/v3/
CONVERTKIT_API_KEY=YOUR_API_KEY
CONVERTKIT_FORM_ID=YOUR_CONVERTKIT_FORM_ID

Google Analytics API

If you want track visits for your course add your GA ID to the environment variables.

GA_TRACKING_ID=YOUR_GA_ID

What's included

  • Next.js - the core
  • TailwindCSS - styling
  • Markdown files as data source

Ideal image sizes

  • Course cover image - 417 × 464
  • Unit cover image - 837 × 305

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.