npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

medusa-plugin-strapi

v1.0.9-dev

Published

Strapi plugin for Medusa Commerce

Downloads

605

Readme

Setting up your store

  • Initialize a medusa project by using a starter

    yarn create medusa-app
            OR
    npx create-medusa-app
  • Choose medusa-starter-default

    ? Which Medusa starter would you like to install? …
    ❯ medusa-starter-default
      medusa-starter-contentful
      Other
  • Pick any storefront starter

    Which storefront starter would you like to install? …
    ❯ Gatsby Starter
    Next.js Starter
    None
  • Make sure redis is installed and running

    $ redis-cli
    127.0.0.1:6379> ping
    PONG
  • Go to backend directory.

    cd <Your project name>/backend 
  • Make sure your packages version in package.json match this -

      "@medusajs/medusa": "^1.1.49",
      "@medusajs/medusa-cli": "^1.1.22",
      "medusa-fulfillment-manual": "^1.1.26",
      "medusa-interfaces": "^1.1.27",
      "medusa-payment-manual": "^1.0.8",
      "medusa-payment-stripe": "^1.1.30",
      "mongoose": "^5.13.3",
      "typeorm": "^0.2.36"
  • Edit medusa-config.js. Navigate to the end of file and make sure this line is not commented out -

    redis_url: REDIS_URL,
  • In the same file, add this object to plugins array -

    {
      resolve: `medusa-plugin-strapi`,
      options: {
      strapi_medusa_user: 'medusa_user',
      strapi_medusa_password: 'medusaPassword1',
      strapi_url: '127.0.0.1',
      strapi_port: '1337'
      }
    }
  • Create and navigate to plugins directory and pull medusa-plugin-strapi

    cd plugins
    git clone https://github.com/Deathwish98/medusa-plugin-strapi.git
  • Install dependencies and build project files

    cd medusa-plugin-strapi
    npm install
    npm run build
  • Start medusa server from backend directory

    cd ../../
    npm run seed
    npm run start

Your local Medusa server should now be running on port 9000.

Setting up strapi

This plugin assumes that you are familiar with strapi. If you have not used it before, visit the official docs for more info -

https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html

  • Create a new strapi project using our template.

    npx [email protected] strapi-medusa --template https://github.com/Deathwish98/strapi-medusa-template.git
      
    OR
      
    yarn create strapi-app strapi-medusa --template https://github.com/Deathwish98/strapi-medusa-template.git
  • Start strapi server.

    npm run develop <---- For development purposes
      
    OR 
      
    npm run start

    NOTE: If you are using SQLite there is a known knex.js bug -

    error KnexTimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?

    It appears after running npm run develop for the first time . Just run the command again and it should disappear.

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