|
@@ -4,21 +4,21 @@ This repo provides the skeleton to get you started with using Medusa. Follow the
|
|
|
|
|
|
## Prerequisites
|
|
## Prerequisites
|
|
- Have Postgresql installed and ensure it is running and initialized.
|
|
- Have Postgresql installed and ensure it is running and initialized.
|
|
- - `brew install postgresql`
|
|
|
|
- - `brew services start postgresql`
|
|
|
|
- - `createdb`
|
|
|
|
|
|
+ - `$ brew install postgresql`
|
|
|
|
+ - `$ brew services start postgresql`
|
|
|
|
+ - `$ createdb`
|
|
|
|
|
|
- Install Redis and ensure that it is running.
|
|
- Install Redis and ensure that it is running.
|
|
- - `brew install redis`
|
|
|
|
- - `brew services start redis`
|
|
|
|
|
|
+ - `$ brew install redis`
|
|
|
|
+ - `$ brew services start redis`
|
|
|
|
|
|
- Have Yarn and related packages installed globally:
|
|
- Have Yarn and related packages installed globally:
|
|
- - Install yarn if needed `brew install yarn`
|
|
|
|
- - Install packages `yarn global add npm @babel/core`
|
|
|
|
|
|
+ - Install yarn if needed `$ brew install yarn`
|
|
|
|
+ - Install packages `$ yarn global add npm @babel/core`
|
|
|
|
|
|
|
|
|
|
## Running Medusa
|
|
## Running Medusa
|
|
-- Copy the `.env.template` file to a `.env` file in the root directory
|
|
|
|
|
|
+- Rename `.env.template` to `.env`: `$ mv .env.template .env`
|
|
- Setup a Stripe account and add your API key and webhook secret to your `.env`
|
|
- Setup a Stripe account and add your API key and webhook secret to your `.env`
|
|
- Setup a Sendgrid account and add your API key to your `.env`
|
|
- Setup a Sendgrid account and add your API key to your `.env`
|
|
- Install all dependencies `$ yarn`
|
|
- Install all dependencies `$ yarn`
|