Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 2.23 KB

File metadata and controls

76 lines (56 loc) · 2.23 KB

Next.js

Medusa Next.js Starter

Medusa is an open-source headless commerce engine that enables developers to create amazing digital commerce experiences.

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

Prerequisites: To use the starter you should have a Medusa server running locally on port 9000. Check out medusa-starter-default for a quick setup.

Quickstart

  1. Setting up the environment variables

    Navigate into your projects directory and get your enviroment variables ready:

    cd nextjs-starter-medusa/
    mv .env.template .env.local

    Add your Stripe API key to your .env.local

    NEXT_PUBLIC_STRIPE_KEY=pk_test_something
    
  2. Install dependencies

    Use Yarn to install all dependencies.

    yarn
  3. Start developing.

    You are now ready to start up your project.

    yarn dev
  4. Open the code and start customizing!

    Your site is now running at http://localhost:8000!

    Edit /pages/index.js to see your site update in real-time!

  5. Learn more about Medusa

  6. Learn more about Next.js