Medusajs 2.0 + Storefront

8 months ago

Description: Full ecommerce solution, manage products, inventory, orders, etc.

Category: Other

URL: https://railway.app/template/gkU-27

24 Replies

kexingwestroadTRIAL

7 months ago

Linking my own GitHub repo resulted in deployment failure. Very disappointing.


kexingwestroadTRIAL

7 months ago

Unable to bind Cloudflare domain


7 months ago

Hello @kexingwestroad. The TRAIL plan is not sufficient to run this project. You need at least the hobby plan to run cloud code and to setup custom domain.


cardoprimoHOBBY

7 months ago

Hey, thanks for your effort. This is an interesting template I would like to use, only there are a few issues:

First, I know this preview shouldn't actually be used in production yet, but it is recommended to deploy 2 separate backends. One in server and one in worker mode.

Second, I think it would be useful to include one of the search modules. A Meilisearch container could be deployed and connected alongside (although, side note, I've not been able to get meilisearch to not index draft products).

And lastly, I couldn't find the details on which version of Redis the Bitnami image uses. I believe the new licence isn't good for commerce use. Regardless, using and supporting the open sourced Valkey would be a better option.

Regards, and thanks for the videos too.


7 months ago

Thanks @cardoprimo! This is highly valuable feedback. Do you have a link to a resource explaining the 2.0 backend worker mode? If I can find some clear instructions, I will start implementing that into this template right away!

I think Meilisearch is cool, but less of a generic requirement for general users of this template. I only see commerce projects that deal with a very large number of products using a sophisticated search engine. Whereas, a simple personal webshop, like a merch shop or niche products, wouldn't benefit from the added complexity. However, it could be very cool to have a guide on how to implement Meilisearch into the stack after the deployment of the template—so, an opt-in thing rather than on by default. (I'll consider this for later..)

Regarding Redis, I do not see any direct issue. This template is using the Railway-offered Redis container—which I can only assume Railway has all permissions needed to offer as a managed service. I have not made any modifications or changes to this service specifically for this template—so it should be fully compliant. I can't find any limitations on what you use Redis for—only limitations on commercial redistribution of Redis, which again, I can only assume that Railway has all the rights needed to offer it. All that being said, I do like the idea about support an open souce alternative very much!.... If I can find the time, I will try to play around with Valkey


7 months ago

which I can only assume Railway has all permissions needed to offer as a managed service

Little correction here, we do not offer managed Redis, nor any managed database, we are simply running the container for you, thus we aren't managing the database, management stops at the container level.

If you want to use Valkey, you can import that template into yours with this - https://bookmarklets.up.railway.app/service-embed/


7 months ago

Thanks for clearing that out, brody.

When you say "that template," are you referring to this one: https://railway.app/new/template/pQYeJx by Brody Over, a Railway-owned user?

Bonus question: if I import that template into my own template, will I get a fork of it as it is now, or will future updates to that template affect my template?

I can't have a part of my template depending on something managed by another person whom I don't know, who can make changes to it or suddenly decommission it.


7 months ago

Yep, that's the template, I am that Brody, but Railway doesn't own me haha.

Embedding a template creates a point-in-time clone of the template, changes made to it won't do anything to your template.

Bonus answer: I also will not get kickback for the embded service, that kickback will go to you.


nonfungibletunjiTRIAL

4 months ago

FATAL Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable: scheme appears with empty host, bucket will not build


nonfungibletunjiTRIAL

4 months ago

Any help?


nonfungibletunji

Any help?

4 months ago

Hi. You can't run this template with a trial account sorry. Railway has a cap of 5 services for trial users, this templates has 7. You need a hobby plan at least.

There's a trial version of it, that has 5 services: https://railway.com/template/Fb6KUX?referralCode=-Yg50p

You can give this one a try instead.


nonfungibletunjiTRIAL

4 months ago

i was getting the error above using the trial version,

FATAL Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable: scheme appears with empty host

Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/07540a4c-03bc-4df0-8ba9-513f403b39f7/vol_yyvx8xbci38mk88l

MINIO_BROWSER_REDIRECT_URL = empty when i checked the actual .env


nonfungibletunji

i was getting the error above using the trial version,FATAL Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable: scheme appears with empty hostMounting volume on: /var/lib/containers/railwayapp/bind-mounts/07540a4c-03bc-4df0-8ba9-513f403b39f7/vol_yyvx8xbci38mk88lMINIO_BROWSER_REDIRECT_URL = empty when i checked the actual .env

4 months ago

You can't run this template with a trial account sorry. Railway has a cap of 5 services for trial users, this templates has 7. You need a hobby plan at least.


rpuls

You can't run this template with a trial account sorry. Railway has a cap of 5 services for trial users, this templates has 7. You need a hobby plan at least.

nonfungibletunjiTRIAL

4 months ago

Do you understand, I am getting this error using the trial version, and only five services. The bucket will not deploy with error

FATAL Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable: scheme appears with empty host,

WHAT HOST IS IT EXPECTING….


nonfungibletunji

Do you understand, I am getting this error using the trial version, and only five services. The bucket will not deploy with errorFATAL Invalid MINIO_BROWSER_REDIRECT_URL value in environment variable: scheme appears with empty host,WHAT HOST IS IT EXPECTING….

4 months ago

Sorry!! I misread your message. I understand now.

I have updated the trial templarte, to not expect the MINIO_BROWSER_REDIRECT_URL

Please give it another spin - it should deploy now


twimp89PRO

3 months ago

Hi, thanks for the great template!

Thanks

Attachments


twimp89

Hi, thanks for the great template!Thanks

3 months ago

Hi I see this is an issue with the local setup, I'd be happy to help, but it will be easier for me if you could create an issue on github: https://github.com/rpuls/medusajs-2.0-for-railway-boilerplate/issues - on the topic "Could not find a notification provider for channel: email" and explain the exact steps you have done before getting this error (clone, install dependencies, setup .env .... and what steps you did in the app)


nonfungibletunjiTRIAL

3 months ago

i am having problems with the admin password Medusajs 2.0 + Storefront (Trial)

the password for admin@yourmail.com is not working after logging in before with the same credentials


nonfungibletunji

i am having problems with the admin password Medusajs 2.0 + Storefront (Trial)the password for admin@yourmail.com is not working after logging in before with the same credentials

3 months ago

For help with admin user management, Please refer to this comment: https://github.com/rpuls/medusajs-2.0-for-railway-boilerplate/issues/7#issuecomment-2569439099


fahad-azamHOBBY

a month ago

hi rpuls thanks for this great template...i have earlier deleted redis instance from project no i want to again configure it back....any documentation that you have that can help me on this....can you please it if you have any


fahad-azam

hi rpuls thanks for this great template...i have earlier deleted redis instance from project no i want to again configure it back....any documentation that you have that can help me on this....can you please it if you have any

a month ago

Hey, surly. That should be straight forward.

1. go to yuor railway project canvas
2. Click the [+ Creat] button in the top right corner

  1. Select Database

  2. Select Redis

  3. Wait for Redis service to appear.

  4. Rename Redis service to "Redis"

  5. Add environment variable to backend service: REDIS_URL="${{Redis.REDIS_URL}}"

  6. Click deploy

  7. DONE

If you, removed any Redis related config references in the source code, you will have to add those back. Then I suggest searching my source repor for anything Redis related and mimicing that.


rpuls

Hey, surly. That should be straight forward.1. go to yuor railway project canvas2. Click the [+ Creat] button in the top right cornerSelect DatabaseSelect RedisWait for Redis service to appear.Rename Redis service to "Redis"Add environment variable to backend service: REDIS_URL="${{Redis.REDIS_URL}}"Click deployDONEIf you, removed any Redis related config references in the source code, you will have to add those back. Then I suggest searching my source repor for anything Redis related and mimicing that.

fahad-azamHOBBY

a month ago

Thanks man i never expected such a quick response. i have not removed any config since i was sure i will need it. My project looks good now

Thanks again!!!


fahad-azamHOBBY

a month ago

hi rpuls
i am having trouble using plugins for invoice generation can you suggest any documentation or tutorial i can follow

Thanks in advance


fahad-azam

hi rpuls i am having trouble using plugins for invoice generation can you suggest any documentation or tutorial i can followThanks in advance

a month ago

Hello, I havent explored automated invoice generation myself, but I do know that Stripe offers invoice creation, so if you are using Stripe for payment, I think it might be possible to have them automatially sending an invoice to the customer email - but again, I haven't fully explored this, so I can't tell you the exact steps.

But, If you want a fully self managed invoice solution, then I would look at some of the community created solutions, like this one: https://github.com/RSC-Labs/medusa-documents/blob/main/v2/README.md

There's a pretty active discoard thread for this plugin; https://discord.com/channels/876835651130097704/1149689862690185227/threads/1224773111631581264