How to configure the development environment #1339
-
Hi guys, I loved Medusa, it's very promising. I want to develop two features:
I can submit a pull request if it is interesting for the project. I don't have much experience with Lerna, can you explain to me how I can configure the development environment? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey! Welcome happy you like what you have seen so far - would love to help you get started :) First read through the contribution guide here: https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md that covers the basics. When you have the Medusa monorepo cloned and a test project initialized with Install
In the monorepoBuild your packages
In your test projectCopy over all the build files to your local project
What happens now is that instead of pulling files from the npm registry To make this a bit less manual I typically
Hope this helps! In regards to the features you are looking to develop, I would love to hear more about the multi-language support; this would definitely be something we would like to include. Maybe you could write a couple of paragraphs on how you would approach the problem, so we can agree on something before you start coding? :) |
Beta Was this translation helpful? Give feedback.
-
Thanks @srindom for tutorial. I'll try :D About languages, i first thought of working similarly at currencies, basically define which languages are available in the store, as well as a default language, such as the possibility of defining languages for each region, just like in currencies. Then I think about moving the translated fields to another table in the database that will be related to the languages. Same for collections and products (name, descriptions, handle) Before doing this I need to define the impact that this change will have, for example in the meilisearch plugin. This is my initial plan, can you tell me if this is a good plan for Medusa? Any other points I have to pay attention to? |
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to get the dev env running? I've gone through the docs https://docs.medusajs.com/development/overview But they aren't really clear. Do I start at backend quick start or go straight to local development? Via backend quickstart, I have the store running. But how to dev? Via local development, I have all the packages installed but medusa-dev just exits and yarn watch medusa does nothing meaningful except show a list and medusa develop gives me a babel error.
The docs could be a lot better here. Thanks! |
Beta Was this translation helpful? Give feedback.
Hey!
Welcome happy you like what you have seen so far - would love to help you get started :)
First read through the contribution guide here: https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md that covers the basics.
When you have the Medusa monorepo cloned and a test project initialized with
medusa new
you should do the following:Install
medusa-dev-cli
:In the monorepo
Build your packages
In your test project
Copy over all the build files to your local project
What happens now is that instead of pulling files from the npm registry
medusa-dev
will pull files from your local …