Get Started in Minutes
Each lesson in the playground is a standalone Next.js app. Lessons 1-3 are complete and ready to use, with more lessons being added as the course progresses.All lessons follow the same setup process. Pick any available lesson folder, run the commands below, and you’re ready to build.
Prerequisites
Before you begin, make sure you have:Node.js 18 or higher
A code editor
We recommend VS Code — it’s free and works great with Next.js.
Getting the Code
You have two options:- Clone with Git
- Download ZIP
If you have Git installed:
Running Your First Lesson
Let’s run Lesson 01 to make sure everything works:Navigate to the lesson folder
Install dependencies
Open in your browser
Visit http://localhost:3000You should see your first Next.js app running!
Making Changes
The magic of Next.js is hot reloading — your changes appear instantly in the browser:Moving to Other Lessons
To run a different lesson, stop the current server and navigate to the new folder:You need to run
npm install the first time for each lesson. After that, just npm run dev is enough.Lesson Overview
Here’s what each lesson teaches:| Lesson | Topic | Key Skills | Status |
|---|---|---|---|
| 01 | Hello SaaS | Running Next.js, hot reloading, builder mindset | ✅ Available |
| 02 | Pages & Routing | Multi-page apps, navigation, file-based routing | ✅ Available |
| 03 | Tailwind + Components | Professional styling, DaisyUI, reusable components | ✅ Available |
| 04 | Auth & Database | User authentication, MongoDB integration | 🚧 Coming Soon |
| 05 | Stripe Payments | Payment processing, subscription plans | 🚧 Coming Soon |
| 06 | Deployment | Shipping to production with Vercel | 🚧 Coming Soon |
| 07 | Full SaaS | Complete production-ready application | 🚧 Coming Soon |
Common Issues
Port 3000 already in use
Port 3000 already in use
If you see “Port 3000 is already in use”, you have another app running.Either:
- Stop the other app (Ctrl+C in its terminal)
- Use a different port:
npm run dev -- -p 3001
Module not found errors
Module not found errors
Make sure you ran
npm install in the lesson folder.If errors persist, try:Changes not appearing
Changes not appearing
- Make sure you saved the file (Cmd+S or Ctrl+S)
- Check the terminal for error messages
- Try refreshing the browser manually
- Restart the dev server (Ctrl+C, then
npm run dev)
Environment variables needed
Environment variables needed
Some lessons (04+) need environment variables.Copy the example file:Then edit
.env.local with your values. Each lesson’s README explains what you need.Tips for Success
Read the Comments
Every file has helpful comments explaining what the code does. Read them!
Break Things
Delete lines, change values, see what breaks. That’s how you learn.
Google Errors
Copy error messages into Google. You’ll find solutions and learn debugging.
Build Your Idea
Customize the apps with your own SaaS ideas. Make it personal.
Next Steps
Start with Lesson 01
Head to Lesson 01: Hello SaaS to begin your journey.
Join the Community
If you’re part of Zero to SaaS, join the community to share progress and get help.