#How to navigate the git repo.

5 messages · Page 1 of 1 (latest)

novel dawn
#

I'm honestly quite new to mono repo but I cant find any of the code that I am looking for, for reference. For example I would like to look at the import product batch job strategy but I cant find it anyware on the repo?
Is there a separate repo?
Is this supposed to be hidden from me?

fluid cairn
#

Hey @novel dawn are you working with v1 or v2? If the latter, i don't believe batch job strategy is used anymore.

What i typically do when browsing the repo, is look for specific keywords. For example, if i am looking for a specific workflow, class or utility function, i do a global search in my code editor: cmd + shift + f and the keyword

Apart from that, as general navigation tips:

  • Everything you need lives inside ~/packages
  • ~/packages/admin/dashboard has the admin ui react project
  • ~/packages/core/core-flows has all the workflows
  • ~/packages/medusa/src has the core Medusa app. What you'll most likely be looking at here is the core store and admin api endpoints, at /api path
  • ~/packages/modules has all the 17 core modules. At the /providers path you will find the official implementations of the infrastructure modules and commerce such as payment-stripe for payments for example
novel dawn
#

Ok maybe I'm not searching the right tag. I use the drop-down to select a V1 tag but I think it switches back to latest when I do a search

fluid cairn
#

Are you searching in Github UI directly or your local fork of the repo? I would suggest forking the repo, so you have it locally and can use the IDE capabilities. Then, you can easily change between tags there

novel dawn
#

Thanks for the advice! I feel much better about this