
Medusa: The WooCommerce of NextJS
- Atul
- E commerce
- January 9, 2025
Table of Contents
Medusa
Well I felt like it (The WooCommerce of NextJS) is but I am not sure it really is so here I will be exploring about it, which is based on Postgres.
The world’s most flexible commerce platform
The most popular open-source platform for commerce. Use Medusa as your foundation and focus on building the customizations that move the needle.
Items Medusa provides:
- Cloud
Documentation
NextJS Starter:
I went and started the project:
npx create-medusa-app@latest --with-nextjs-starter
This assumes that you have a Postgres database up and running.
Medusa server (Admin)
1. Initialize a new server:
npx create-medusa-app@latest --db-url "postgresql://neondb_owner:TOMbGz8sB@ep-young-lab-aak91.tus3.azure.neon.tech/neondb?sslmode=require"
So you need to add your database URL.
Here I have added a Neondb but it seems to take a lot of time while migrating!
Yes it is now seeding the database.
Medusa has created many tables, literally many tables!
After the database work is done:
- Medusa Admin will be up at http://localhost:9000/app/
Creds: atulya@raaj.com
This is so awesome!
my-medusa-store-storefront (Client)
- The Store Frontend will be available at http://localhost:8000/
Store:
- Products are loading
- Added to cart too
- Checking out
- Placed order
Admin:
- See order details
- Accepted Payment
- Stock Preview
- Delivery status
- Final
- Inventory (Just got reduced by 1)
- Customer view
- Customer order view
- Beautiful dark theme
Tech stack:
- NextJS
- Postgres
- Redis
- Vite
Overall Medusa is a good platform, I need to dig deep to get more details.
Getting started:
Installation guide: https://docs.medusajs.com/learn/installation
Install admin project
Create admin via UI or CLI :
npx medusa user -e admin@medusajs.com -p supersecret
- Admin app consists of:
"jest": "^29.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.6.2",
"vite": "^5.2.11"
- Running Medusa:
yarn dev
I thought there will be code here but here is only Readme files.