Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
037fd9b
Develop (#16)
pfulara Feb 17, 2025
c2c3622
Update Product limit
pfulara Feb 18, 2025
9a9b380
fix/display-images
pfulara Feb 26, 2025
102d7df
feat/algolia search
pfulara Feb 27, 2025
769d90e
feat/algolia search
pfulara Feb 27, 2025
144367a
fix/wishlist
pfulara Feb 27, 2025
e9785c3
Feat/algolia search
pfulara Feb 27, 2025
818447d
Update README.md
pfulara Mar 4, 2025
6ce7f10
Feat/algolia search (#22)
pfulara Mar 4, 2025
94e0d05
Feat/algolia search (#23)
pfulara Mar 7, 2025
477a914
Feat/algolia search (#24)
pfulara Mar 11, 2025
9f9833a
Change default country
NicolasGorga Mar 12, 2025
c922a05
Merge branch 'main' of https://github.com/mercurjs/b2c-marketplace-st…
NicolasGorga Mar 12, 2025
03f9e1b
Update README.md
pfulara Mar 19, 2025
9e49f89
Merge remote-tracking branch 'upstream/main'
NicolasGorga Mar 24, 2025
013bd25
Include example .env.template file
NicolasGorga Mar 24, 2025
e537516
Update .env.template
NicolasGorga Mar 24, 2025
d9f38e1
fix/product-details
pfulara Mar 28, 2025
8229b82
Fix/cart
pfulara Mar 28, 2025
2b383b1
Merge upstream
NicolasGorga Mar 28, 2025
d54b998
Fix/cart
pfulara Mar 28, 2025
7486fae
fix/orders
Mar 31, 2025
6c9df59
fix/seller-page
Mar 31, 2025
ddf4df2
fix/seller-page
Mar 31, 2025
12e3256
fix/seller-page
Mar 31, 2025
cb7556a
fix/seller
Mar 31, 2025
7731b6d
Fix/seller (#29)
pfulara Apr 1, 2025
01d87fa
Fix/seller (#30)
pfulara Apr 1, 2025
1119993
Fix/seller (#31)
pfulara Apr 1, 2025
8b096db
Fix/products (#32)
pfulara Apr 1, 2025
c1b9079
Fix/products (#33)
pfulara Apr 1, 2025
9018ab1
Merge remote-tracking branch 'upstream/main'
NicolasGorga Apr 1, 2025
1f774ce
Use yarn, update .gitignore
NicolasGorga Apr 1, 2025
e3b0985
Update dependencies
NicolasGorga Apr 1, 2025
41cc8f8
Pass additional_data.seller_id to create cart endpoint
NicolasGorga Apr 2, 2025
d0a9d63
Merge branch 'fix/CEN-38'
NicolasGorga Apr 2, 2025
2d9ce64
Change cart cookies to allow storing a cart per seller
NicolasGorga Apr 3, 2025
e348b87
Modify Cart actions to work with multiple carts (one per seller)
NicolasGorga Apr 3, 2025
f01e40f
Modify Cart UI components, to receive the cart id by props, since the…
NicolasGorga Apr 3, 2025
660d29f
Introduce new Bag UI, which shows the list of Cart components, to pro…
NicolasGorga Apr 3, 2025
4418104
Set _medusa_cache_id accordingly. Correct deleteLineItem
NicolasGorga Apr 3, 2025
0a25b4f
Update Bag to use Cart component. Remove Cart page
NicolasGorga Apr 3, 2025
6479a72
Adapt cart dropdown to work with Bag concept
NicolasGorga Apr 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// API URL
MEDUSA_BACKEND_URL=http://localhost:9000
// Your publishable key generated in mercur admin panel
NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY=[get key from admin panel]
// Your public url
NEXT_PUBLIC_BASE_URL=http://localhost:3000
// Default region
NEXT_PUBLIC_DEFAULT_REGION=uy
// Stripe payment key. It can be random string, don't leave it empty.
NEXT_PUBLIC_STRIPE_KEY=supersecret
// Backend's cookie secret
REVALIDATE_SECRET=supersecret
// Your site name in metadata
NEXT_PUBLIC_SITE_NAME="Centro Marketplace"
// Your site description in metadata
NEXT_PUBLIC_SITE_DESCRIPTION="Centro Markeplace"
// Algolia Application ID
NEXT_PUBLIC_ALGOLIA_ID=20IDK6H4OR
// Algolia Search API Key
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=9c7935fad6946bec722588d0d6b9a624
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*
!.env.template

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# dev
.vscode
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "always",
"semi": false,
"endOfLine": "auto",
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
10 changes: 5 additions & 5 deletions .storybook/next-intl.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import en from '../src/translations/en.json';
import en from "../src/translations/gb.json"

const messagesByLocale: Record<string, any> = { en };
const messagesByLocale: Record<string, any> = { en }

const nextIntl = {
defaultLocale: 'en',
defaultLocale: "en",
messagesByLocale,
};
}

export default nextIntl;
export default nextIntl
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Mercur is a platform to start, customize, manage, and scale your marketplace for

## Quickstart

### Instalation
### Installation
Clone the repository

```js
Expand Down Expand Up @@ -80,12 +80,15 @@ REVALIDATE_SECRET=supersecret
// Your site name in metadata
NEXT_PUBLIC_SITE_NAME="Fleek Marketplace"
// Your site description in metadata
NEXT_PUBLIC_SITE_DESCRIPTION="Fleek Markeplace"
NEXT_PUBLIC_SITE_DESCRIPTION="Fleek Markeplace"
// Algolia Application ID
NEXT_PUBLIC_ALGOLIA_ID=supersecret
// Algolia Search API Key
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=supersecret
```
&nbsp;

Start storefront
```js
npm run dev
```

34 changes: 24 additions & 10 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
import type { NextConfig } from 'next';
import createNextIntlPlugin from 'next-intl/plugin';
import type { NextConfig } from "next"
import createNextIntlPlugin from "next-intl/plugin"

const nextConfig: NextConfig = {
trailingSlash: false,
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: 'https',
hostname:
'medusa-public-images.s3.eu-west-1.amazonaws.com',
protocol: "https",
hostname: "medusa-public-images.s3.eu-west-1.amazonaws.com",
},
{
hostname: 'localhost',
protocol: "https",
hostname: "mercur-connect.s3.eu-central-1.amazonaws.com",
},
{
protocol: "https",
hostname: "api.mercurjs.com",
},
{
protocol: "http",
hostname: "localhost",
},
{
protocol: "https",
hostname: "api-sandbox.mercurjs.com",
pathname: "/static/**",
},
{ protocol: 'https', hostname: 'api.mercurjs.com' },
],
},
};
}

const withNextIntl = createNextIntlPlugin();
const withNextIntl = createNextIntlPlugin()

export default withNextIntl(nextConfig);
export default withNextIntl(nextConfig)
Loading