Skip to content

Better-Design-Digital/medusajs-2.0-for-railway-boilerplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 

Repository files navigation

Medusa logo Railway logo

Prebaked medusajs 2.0 monorepo (backend + postgres + redis + +storefront)
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 Chat Follow @medusajs

About this boilerplate

This boilerplate is a monorepo consisting of snapshot of newly released medusajs 2.0 (release candidate) backend and storefront app created with npx create-medusa-app@rc October 2024. Modified to be plug n' play deployable on railway.app!

Updated: to version 2.0.0-rc

/backend

local setup

Video instructions: https://youtu.be/PPxenu7IjGM

  • Install dependencies npm i
  • Rename .env.template -> .env
  • To connect to your online database, from local; copy the DATABASE_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)

commands

cd backend/ npm run dev will start backend (and admin dasboard frontend on localhost:9000/app) - in development mode

/storefront

local setup

Video instructions: https://youtu.be/PPxenu7IjGM

intall dependencies npm i Rename .env.local.template -> .env.local

requirements

  • running backend on port 9000 - needed to fetch products data and more, to build nextjs pages.

commands

cd storefront/ npm run dev will run on uncompiled code, and hot-reload as files saved with changes

Useful resources

About

Monorepo including medusajs 2.0 backend and storefront

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.9%
  • JavaScript 1.7%
  • CSS 0.4%