/tokoplay-web

▶️ Frontend of Tokoplay, a platform where seller can promote products through videos

Primary LanguageJavaScriptMIT LicenseMIT




Tokoplay Web

Promote products through videos


View the Web

Table of Contents

Description

^ back to top ^

Tokoplay is a platform where seller can promote products through videos to potential buyers. It is a simple clone of Tokopedia Play. It is built for the final project of Generasi GIGIH 3.0. This repo is the frontend of the app. It is built with React.js. You can see the API in this repo.

Live Demo

^ back to top ^

Check out the web version of Tokoplay here: tokoplay.vercel.app

Features

^ back to top ^

These are the features of the app. Features marked with (additional) are features I added that are not included in the minimum requirements.

  • Display list of videos
  • Search videos with debouncing (additional)
  • Show detail of a video
  • Display products of a video
  • Display comments of a video
  • Add a comment to a video
  • Implement infinite scroll for list of videos & comments (additional)

Tech Stack

^ back to top ^

Run Locally

^ back to top ^

Getting Started

  • Make sure you have Node.js & Yarn installed on your computer.

  • Clone the repo.

    git clone https://github.com/nadiannis/tokoplay-web.git
    cd tokoplay-web
  • Make a copy of env.example file & rename it to .env.

    Write an API base URL to connect the frontend app to the API. Make sure the API is running. Go to this repo to know more about the API.

    VITE_API_BASE_URL=http://localhost:8080
  • Install the dependencies.

    yarn

Development

Run the development server.

yarn dev

Production

Build the app.

yarn build

Locally preview the production build.

yarn preview

Linting & Formatting

If you want to fix ESLint error or format the code, you can run this command.

yarn lint:fix
yarn prettier:fix