Medusa Install & Run on local
Prerequisites
npm, nodejs & postgres pre-installed
Step 1
Install npm & nodejs & postgres, I already did. So I am just verifying it-
node -v
npm -v
Step 2
Install medusa CLI with the cmd- npm install @medusajs/medusa-cli -g
Step 3
Create new medusa project with this cmd- medusa new my-medusa-app
Step 4
configure the database - sudo -u postgres psql
create database in postgres - CREATE DATABASE database_medusa;
connect the server with localhost in PgAdmin
configure the .env file DATABASE_URL=postgres://
localhost/medusa_db
Step 5
build/run the medusa - medusa develop
Step 6
Seed database - npm run seed
Step 7
Again run the same command- medusa develop
The medusa admin page will be running on localhost 7001-
email as - admin@medusa-test.com
password - supersecret
Subscribe to my newsletter
Read articles from Ankit Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by