Skip to content

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed on your machine:

  • Node.js (version 12.0.0 or later)
  • npm (comes with Node.js)
  • yarn (optional, if you prefer using yarn)
  • pnpm (optional, if you prefer using pnpm)
  • bun (optional, if you prefer using bun)

Installation Backend

1. Clone the backend repository:

git clone https://github.com/Jonathan0823/ecommerce-backend.git

2. Change your directory to the backend project:

cd fullstack-ecommerce

3. Install the dependencies:

npm install
# or
yarn install
# or
pnpm install

4. Compile and run the project:

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

the backend will be running on http://localhost:8000 check the repository for more information

Installation Frontend

1. Clone the frontend repository:

git clone https://github.com/Jonathan0823/fullstack-ecommerce.git

2. Change your directory to the frontend project:

cd fullstack-ecommerce

3. Install the dependencies:

npm install
# or
yarn install
# or
pnpm install

4. Change the BACKEND_URL in the /app/lib/constants.ts file to you backend url:

export const BACKEND_URL = 'http://localhost:8000';

5. Compile and run the project:

# development
$ npm run dev

# production mode
$ npm run build
$ npm run start

the frontend will be running on http://localhost:3000

Releases

Packages

Used by

Contributors

Languages