Invite-Only Early Access — Think Throo GitHub App is currently invite-only. Request access here.
2024January

Next.js Codebase Analysis <> create-next-app <> Create a local copy

Since vercel/next.js has got MIT license, it is safe to create a local copy of create-next-app package in your machine to run your experiments such as trial and error attempts, meaningful console log statements etc., to understand this package better.

Create a local copy

  • Clone the Next.js repo in your machine
git clone https://github.com/vercel/next.js.git
  • Do not navigate to next.js folder yet, from the same terminal, create a new folder called create-next-app

  • Copy everything inside next.js/packages/create-next-app into this new folder.

  • Install the dependencies using the command npm install inside this newly created folder create-next-app

create-next-app local copy

Conclusion

We have seen how to create a local copy of the create-next-app package. With this setup, you can run your little experiments as you wish.

I am building a platform that explains best practices used in open source by elite programmers. Join the waitlist and I will send you the link to the tutorials once they are ready.

If you have any questions, feel free to reach out to me at ramu.narasinga@gmail.com

Get free courses inspired by the best practices used in open source.

About me:

Hey, my name is Ramu Narasinga. Email: ramu.narasinga@gmail.com

Tired of AI-generated code that works but nobody understands?

I spent 3+ years studying OSS codebases and wrote 350+ articles on what makes them production-grade. I built an open source tool that reviews your PR against your existing codebase patterns.

Your codebase. Your patterns. Enforced.

Get started for free —thinkthroo.com