Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

One-click deploy template for railway

NotificationsYou must be signed in to change notification settings

rpuls/medusajs-for-railway-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Medusa logoRailway logo

Medusajs open source ecommerce platform
one-click deploy on railway!

Combine Medusa's modules for your commerce backend with the newest Next.js 14 features for a performant storefront.

PRs welcome!Discord ChatFollow @medusajs

About this boilerplate

This boilerplate is a monorepo consisting of snapshot of a medusajs backend and storefront app created withnpx create-medusa-app@latest February 2024 - updated 16th October 2024. Modified to be plug n' play deployable onrailway.app!

medusajs-backend

Railway setup

Use one-click deploy template:

Deploy on Railway

Please change the value of environtment variables:COOCKIE_SECRET andJWT_SECRET.

local setup

  • Install dependenciesyarn
  • Rename.env.template ->.env
  • To connect to your online database, from local; copy theDATABASE_URL value that have been auto generated on railway, and add to your.env

requirements

  • postgres database (will be automatically generated if using railway template)
  • redis (will be automatically generated if using railway template)

optional

  • cloudinary: I highly recommend using a proper media service.
    1. Sign up a free account withcloudinary choose "developer API calls" type of user.
    2. Add yourcloud_name,api_key &api_secret to .env.local this will eneable Cloudinary as a file service on local dev environment
    3. Configure the same environment variables in your railway dashboard to enable cloudinary in production.
    4. If the steps above was confusin, visithttps://medusajs.com/plugins/medusa-file-cloudinary/ for more setup details.

commands

cd medusajs-backend/yarn build will compile app.yarn dev will start local admin dashboard app to manage products and orders etc.yarn start will start the backend server, needed for the storefront

medusa-storefront

local setup

intall dependenciesyarnRename.env.local.template ->.env.local

requirements

  • running backendnpm run start - needed to fetch products data and more, to build nextjs pages.

commands

cd medusajs-storefront/yarn wait will keep calling backend endpoint until a backend responds.yarn build will build the nextjs app - remember to start backend app prior to running this command.yarn start will serve the frontend web shop.

A template by,

FUNKYTON logo

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp