DEV Community

Ramu Narasinga
Ramu Narasinga

Posted on • Updated on

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:

Website: https://ramunarasinga.com/

Linkedin: https://www.linkedin.com/in/ramu-narasinga-189361128/

Github: https://github.com/Ramu-Narasinga

Email: ramu.narasinga@gmail.com

Learn the best practices used in open source.

Top comments (0)