Before starting this coding challenge, ensure you have the following installed on your computer:
- Docker Desktop (or Docker Engine + Docker Compose)
- Node.js (version 20 or higher recommended)
- npm (comes with Node.js)
To verify your installations, run:
docker --version
docker compose version
node --version
npm --versionFollow these steps carefully to set up your Medusa development environment:
cd /path/to/medusa-store-mytestnpm install --legacy-peer-depsNote: The --legacy-peer-deps flag is required to resolve dependency conflicts.
Create your environment configuration file:
cp .env.template .envThe .env file contains essential configuration for your Medusa application, including CORS settings, Redis URL, and database configuration.
Start the Medusa app:
npm run docker:upThis will start your Medusa app, including the database and Redis. Automatically, it will seed your DB as well.
Create your first admin user to access the Medusa Admin dashboard:
docker compose run --rm medusa npx medusa user -e admin@example.com -p supersecretThe Medusa server will start on http://localhost:9000
- Open your browser and navigate to: http://localhost:9000/app
- Login with your credentials:
- Email:
admin@example.com - Password:
supersecret
- Email:
- If you can access the dashboard, your setup is successful! 🎉
- In the Admin dashboard, go to: Settings → Publishable API Keys: http://localhost:9000/app/settings/publishable-api-keys
- Copy the API key token
- Save this token - you'll need it to connect your Storefront application
For more detailed information:
This starter is compatible with versions >= 2 of @medusajs/medusa.
Visit the Quickstart Guide to set up a server.
Visit the Docs to learn more about our system requirements.
Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.
Learn more about Medusa’s architecture and commerce modules in the Docs.
The community and core team are available in GitHub Discussions, where you can ask for support, discuss roadmap, and share ideas.
Join our Discord server to meet other community members.