https://github.com/marceometry/best-commerce-frontend
https://github.com/marceometry/best-commerce-frontend
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marceometry/best-commerce-frontend
- Owner: Marceometry
- Created: 2023-10-16T20:51:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T23:36:43.000Z (over 1 year ago)
- Last Synced: 2023-10-23T01:27:55.621Z (over 1 year ago)
- Language: TypeScript
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Best Commerce
This is a [Next.js 13](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
The project consists in a Whitelabel E-Commerce platform that is meant to consume the [Best Commerce API](https://github.com/Marceometry/best-commerce-backend), using a unique `STORE_ID` that represents the e-commerce owner company, which is used to list the available products, for example.## Getting Started
First, follow the steps to run the Best Commerce API [here](https://github.com/Marceometry/best-commerce-backend#readme).
Now that you have a `STORE_ID` in hands, add it in a file called `.env.local`, in the root of the project, following `.env.example`:
```bash
NEXT_PUBLIC_API_URL="http://localhost:3333"
STORE_ID="STORE_ID_VALUE_HERE"
```## Installation
```bash
npm i
# or
yarn
```## Running the app
```bash
npm run dev
# or
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the project running.