1. 3
    Create a Next.js App with Tailwind CSS
    39s

Create a Next.js App with Tailwind CSS

Jon Meyers
InstructorJon Meyers
Share this video with your friends

Social Share Links

Send Tweet
Published 3 years ago
Updated 2 years ago

Next.js is a super efficient web development framework, built on React. It handles both client-side and server-side code, making it a great tool for most web apps.

In this video, we use the create-next-app package to create a new Next.js application, and use the with-tailwind argument to configure TailwindCSS.

Additionally, we remove the boilerplate markup, and run our application in development mode with npm run dev.

Instructor: [0:00] Let's create a Next.js project to display our lessons. We're going to use the create-next-app package. For our very minimal styling, we're going to use Tailwind.

[0:09] Now, we're already in our supabase-sas folder, so we can just tell it to use our current directory. When that's finished, we can run, npm run dev to start our project in development mode. If we navigate to localhost over port 3000, we should see our application running.

[0:23] We can remove this boilerplate code by going to /pages/index.js, and removing everything other than our outermost div. We can replace that with the, "Text Working," and get rid of this unused import. When we Save, we should see that "Text Working."

egghead
egghead
~ 6 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today