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.
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
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
- postgres database (will be automatically generated if using railway template)
- redis (will be automatically generated if using railway template)
cd backend/
npm run dev
will start backend (and admin dasboard frontend on localhost:9000/app
) - in development mode
Video instructions: https://youtu.be/PPxenu7IjGM
intall dependencies npm i
Rename .env.local.template
-> .env.local
- running backend on port 9000 - needed to fetch products data and more, to build nextjs pages.
cd storefront/
npm run dev
will run on uncompiled code, and hot-reload as files saved with changes
- How to setup credit card payment with Stripe payment module: https://youtu.be/dcSOpIzc1Og
- https://funkyton.com/medusajs-2-0-is-finally-here/#succuessfully-deployed-whats-next