Brak opisu

Philip Korsholm 5aa05a2368 merge master 3 lat temu
data 4d9c54059f hotfix: Use smaller product image 3 lat temu
src c8bf5a9d45 spelling 3 lat temu
.babelrc.js 8aac90de6f Initial commit 3 lat temu
.env.template 8aac90de6f Initial commit 3 lat temu
.gitignore 5f2358be73 fix: packages 3 lat temu
Dockerfile 2a6d9b93a8 docker compose 3 lat temu
README.md 5aa05a2368 merge master 3 lat temu
develop.sh 2a6d9b93a8 docker compose 3 lat temu
docker-compose.yml 2a6d9b93a8 docker compose 3 lat temu
medusa-config.js b4cd010835 update readme 3 lat temu
package.json 4fcf609b7c chore: bump medusa 3 lat temu
yarn.lock 4fcf609b7c chore: bump medusa 3 lat temu

README.md

Medusa

Medusa Starter Default

This repo provides the skeleton to get you started with using Medusa. Follow the steps below to get ready.

Medusa is released under the MIT license. PRs welcome! Discord Chat

Prerequisites

This starter has minimal prerequisites and most of these will usually already be installed on your computer.

Setting up your store SQLite

  • Install the Medusa CLI

    npm install -g @medusajs/medusa
    yarn global add @medusajs/medusa
    
  • Create a new Medusa project

    medusa new my-medusa-store
    
  • Run your project

    cd my-medusa-store
    medusa develop
    

Your local Medusa server is now running on port 9000.

Setting up your store with docker

  • Create a new Medusa project

    git clone https://https://github.com/medusajs/medusa-starter-default.git
    
  • Modify your medusa config:

    module.exports = {
    projectConfig: {
      redis_url: REDIS_URL,
      // For more production-like environment install PostgresQL
      database_url: DATABASE_URL,
      database_type: "postgres",
      // database_database: "./medusa-db.sql",
      // database_type: "sqlite",
      store_cors: STORE_CORS,
      admin_cors: ADMIN_CORS,
    },
    plugins,
    };
    
  • Run your project

    docker compose up
    

Your local Medusa server is now running on port 9000.

Try it out

curl -X GET localhost:9000/store/products | python -m json.tool

After the seed script has run you will have the following things in you database:

  • a User with the email: admin@medusa-test.com and password: supersecret
  • a Region called Default Region with the countries GB, DE, DK, SE, FR, ES, IT
  • a Shipping Option called Standard Shipping which costs 10 EUR
  • a Product called Cool Test Product with 4 Product Variants that all cost 19.50 EUR

Visit docs.medusa-commerce.com for further guides.

Website | Notion Home | Twitter | Docs