How to Run your Medusajs 2.0 boilerplate locally

How to Run your Medusajs 2.0 boilerplate locally

Requirements

Until now, everything has been done in your browser, but that is about to change. To make changes to your medusa project, you will need some web development tools. If you already have these tools, please scroll past this step. If you have never heard of any of these tools, you're in for a challenge, as this will get quite technical.

  • Medusajs 2.0 boilerplate project: If you didn't already launch the one-click deploy template, you will need to do that first, it takes about 10 minutes, instructions can be found here: https://funkyton.com/medusajs-2-0-is-finally-here/#video-instrucitons
  • Git: A command-line tool necessary for pushing your updates to the build pipeline. You can download Git from Git's official website. Choose the version compatible with your operating system and follow the installation instructions.
  • Visual Studio Code (VS Code): VS Code is a lightweight, yet powerful and free code editor developed by Microsoft. Download it from the official Visual Studio Code website. Select the version for your operating system.
  • Node.js: Node.js is a runtime environment that allows you to run JavaScript on the server side. It's required to execute the JavaScript code you'll be working with. Visit the official Node.js website to download. It is recommended to download the LTS (Long Term Support) version for better stability.

Video Instructions

Setup

In case you don't already have the .env.local template file in your /storefront, you may copy the contents here:

NEXT_PUBLIC_MEDUSA_BACKEND_URL=http://localhost:9000

NEXT_PUBLIC_BASE_URL=http://localhost:8000