docs: Adds guides for plugins and storefront starters (#840)

This commit is contained in:
Oliver Windall Juhl
2021-11-23 18:08:00 +01:00
committed by GitHub
parent dec205f38e
commit 1de0b28f38
20 changed files with 1271 additions and 2 deletions

View File

@@ -0,0 +1,44 @@
# Quickstart: Gatsby
**Create a new Gatsby project using the Medusa starter template**
```bash
gatsby new my-medusa-store https://github.com/medusajs/gatsby-starter-medusa
```
**Set up environment variables**
Navigate into your projects directory and get your environment variables ready:
```shell
mv .env.template .env.development
```
**Install dependencies**
Use your favourite package manager to install dependencies:
```shell
yarn
# or
npm install
```
**Start developing.**
Start up the local server:
```shell
yarn start
```
Your site is now running at http://localhost:8000!
Edit `src/pages/index.js` to see your site update in real-time!
**Learn more about Medusa**
- [Website](https://www.medusa-commerce.com/)
- [GitHub](https://github.com/medusajs)
- [Documentation](https://docs.medusa-commerce.com/)
**Learn more about Gatsby**
- [Documentation](https://www.gatsbyjs.com/docs/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Tutorials](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Guides](https://www.gatsbyjs.com/tutorial/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [API Reference](https://www.gatsbyjs.com/docs/api-reference/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Plugin Library](https://www.gatsbyjs.com/plugins?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)
- [Cheat Sheet](https://www.gatsbyjs.com/docs/cheat-sheet/?utm_source=starter&utm_medium=readme&utm_campaign=minimal-starter)

View File

@@ -0,0 +1,39 @@
# Quickstart: Next.js
**Create a new Next.js project using the Medusa starter template**
```bash
npx create-next-app -e https://github.com/medusajs/nextjs-starter-medusa my-medusa-storefront
```
**Set up environment variables**
Navigate into your projects directory and get your environment variables ready:
```shell
mv .env.template .env.local
```
**Install dependencies**
Use your favourite package manager to install dependencies:
```shell
yarn
# or
npm install
```
**Start developing.**
Start up the local server:
```shell
yarn dev
```
Your site is now running at http://localhost:8000!
Edit `src/pages/index.js` to see your site update in real-time!
**Learn more about Medusa**
- [Website](https://www.medusa-commerce.com/)
- [GitHub](https://github.com/medusajs)
- [Documentation](https://docs.medusa-commerce.com/)
**Learn more about Next.js**
- [Documentation](https://nextjs.org/docs)