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

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. I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.

I am open to work on interesting projects. Send me an email at ramu.narasinga@gmail.com

My Github —  https://github.com/ramu-narasinga

My website —  https://ramunarasinga.com

My Youtube channel —  https://www.youtube.com/@ramu-narasinga

Learning platform —  https://thinkthroo.com

Codebase Architecture —  https://app.thinkthroo.com/architecture

Best practices —  https://app.thinkthroo.com/best-practices

Production-grade projects —  https://app.thinkthroo.com/production-grade-projects