This repo provides the skeleton to get you started with using Medusa. Follow the steps below to get ready.
This starter has minimal prerequisites and most of these will usually already be installed on your computer.
- Clone this repository
git clone [email protected]:carpad88/medusa-server-wishlist.git medusa-wishlist
- Install dependencies
cd medusa-wishlist
yarn
- Link to your database
To be able to run migrations you need to use a Postgres database.
Update the medusa-config.js
with your postgres database URL
const DATABASE_URL = process.env.DATABASE_URL || "<link to your postgres database>";
- Build and run migrations
Run the next commands to build and run your migrations
yarn run build && medusa migrations run
- Seed your store
To seed your medusa store run the following command:
medusa seed -f ./data/seed.json
This command seeds your database with some sample data to get you started, including a store, an administrator account, a region and a product with variants. What the data looks like precisely you can see in the ./data/seed.json
file.
- Start development
You should now be able to start developing your site.
yarn start
-
Open the source code and start editing!
Your server is now running at
http://localhost:9000
!