Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medusajs/medusa-express-gatsby
Medusa One Page Checkout
https://github.com/medusajs/medusa-express-gatsby
Last synced: 26 days ago
JSON representation
Medusa One Page Checkout
- Host: GitHub
- URL: https://github.com/medusajs/medusa-express-gatsby
- Owner: medusajs
- Created: 2021-10-21T13:33:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-09T14:28:27.000Z (almost 3 years ago)
- Last Synced: 2024-11-02T19:34:17.827Z (about 1 month ago)
- Language: JavaScript
- Size: 2.77 MB
- Stars: 19
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-medusajs - Gatsby Medusa express
README
Medusa Express
Medusa is an open-source headless commerce engine that enables developers to create amazing digital commerce experiences.
**Prerequisites**: To use Medusa Express, you need a Medusa server. Check out [medusa-starter-default](https://github.com/medusajs/medusa-starter-default) for a quick setup.
## 🚀 Get started!
### 1. Create your Medusa Express project
```zsh
gatsby new medusa-express https://github.com/medusajs/medusa-express-gatsby
# or with npx
npx gatsby new medusa-express https://github.com/medusajs/medusa-express-gatsby
# or via Gitgit clone https://github.com/medusajs/medusa-express-gatsby.git medusa-express
```### 2. Install dependencies
```zsh
cd medusa-express
yarn
# or
npm install
```### 3. Link your Medusa server
In your project, you should have a `.env.template` file with the following content:
```shell
GATSBY_MEDUSA_BACKEND_URL=http://localhost:9000
```Copy the template into a file used for local development:
```zsh
mv .env.template .env.development
```Your Medusa server runs locally on port 9000 by default. Make sure to update the above environment variable, if you've changed the port.
### 4. Try it out!
Start up both your Medusa server and Medusa Express and try it out!
Medusa Express is running at `http://localhost:8000`!
> **Important**: Medusa Express requires existing product. Either seed your Medusa server with some dummy products, or create your own through Medusa Admin.