How to install Vendure on macOS

Vendure is an open-source e-commerce framework built with TypeScript and GraphQL. In this tutorial, we'll go through the steps to get Vendure up and running on macOS.

Prerequisites

Before we begin, make sure you have the following installed:

You can check if you have Node.js and npm installed by running the following commands in your terminal:

node -v
npm -v

Step 1: Install Vendure CLI

The Vendure CLI is a command-line tool that helps you create and manage Vendure projects. To install it, run the following command in your terminal:

npm install -g @vendure/cli

Step 2: Create a new Vendure project

To create a new Vendure project, run the following command in your terminal:

vendure init my-project

This will create a new directory called my-project in your current directory and initialize a new Vendure project inside it.

Step 3: Start the server

To start the Vendure server, navigate to the my-project directory and run the following command:

npm run start

This will compile your TypeScript code and start the server.

Step 4: Open the Vendure Admin UI

The Vendure Admin UI is a graphical interface for managing your Vendure store. To open it, go to http://localhost:3000/admin in your browser.

Step 5: Create an admin user

Before you can log in to the Vendure Admin UI, you need to create an admin user. To do this, run the following command in your terminal:

vendure create-admin-user

Follow the prompts to enter your email address, password, and name.

Conclusion

In this tutorial, we've covered the basic steps to install Vendure on macOS. From here, you can start building your e-commerce store using the Vendure framework.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!