Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing local development documentation #10788

Open
1 of 2 tasks
bartekpaczek opened this issue Dec 31, 2024 · 7 comments
Open
1 of 2 tasks

Missing local development documentation #10788

bartekpaczek opened this issue Dec 31, 2024 · 7 comments

Comments

@bartekpaczek
Copy link

What Medusa version and documentation are you using?

v2

Preliminary Checks

Issue Summary

There is missing page on local development for Medusa v2.
https://docs.medusajs.com/usage/local-development

How can this issue be resolved?

...

Are you interested in working on this issue?

  • I would like to fix this issue
@MarcinDobrzanski
Copy link

I'm referring to:
Installation Guide
Deployment Guide

These guides contain the relevant information about local development and deployment for Medusa v2. While the /usage/local-development page appears to be missing, the installation guide covers local development setup and the deployment guide provides deployment instructions.

@bartekpaczek
Copy link
Author

I have little expirience with .js and maybe it is why, but I have trouble grasping the idea of strating new project with Medusa.
I would imagin that the way to do it would be to: fork the repo, clone it localy, install medusa from it and continue development within it. However the documentation recomennds to install it and do the development within the /src directory without having the fork of the repo, which doesn't seem to be sustainable development practice. What part am I missing?

@helloquang
Copy link

Medusa is a framework for building an e-commerce website, so you won't directly develop the project by fork it
You'll start a new project (Medusa starter) and use medusa framework to build things around it.

If there is a new version on medusa framework, update package.json in your project

@shahednasser
Copy link
Member

Hello @bartekpaczek any reason you're looking for the link you mentioned? Did you find it used somewhere?

As mentioned by other commenters, this guide explains how to install Medusa and start your development.

I would imagin that the way to do it would be to: fork the repo, clone it localy, install medusa from it and continue development within it.

That's technically true, but the project's codebase isn't this repository. It's in the medusa-starter-default repository. This repository holds the source code for the packages you use in your project.

Our create-medusa-app CLI tool simplifies the installation process for you, which I highly recommend if you're just starting out with Medusa, but you can clone that repo if you feel more comfortable doing that and perform the installation manually. Keep in mind you'll need to setup the database and admin user, which you can use our CLI tool for.

@bug-author
Copy link

Thank you @shahednasser, I had the same thoughts as @bartekpaczek and couldn't differentiate in setup for a medusa app project vs setup for local development to contribute to medusa.

@shahednasser
Copy link
Member

@bug-author thank you for your input.

  • Which approach are you looking for, setting up Medusa or contributing?
  • What is the main reason behind that confusion?

@bug-author
Copy link

bug-author commented Jan 18, 2025

@shahednasser

  1. I'm looking for the contribution approach
  2. The documentation have guidelines on how to setup medua for building an app, but its confusing how to set up medusa locally for contributing to it. I spent some time last week to set up this repository and then explore it. The .env bit was a little confusing too, I just copied the example env to my .env and most of the NextJs error were resolved thankfully. I'll keep exploring to get comfortable with the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants