jonidelv / products-page

Home Page:https://products-page-mu.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Tests

This repository comes with jest and playwright already set up. You are completely free to change its default settings or not using them completely. We're providing sensible defaults to avoid you spending time setting up common tools.

Run unit tests

npm run unit_test
# or
yarn unit_test
# or
pnpm unit_test

Run e2e tests

npm run e2e
# or
yarn e2e
# or
pnpm e2e

MSW

MSW is available if needed for mocks during tests. To run the app using the mocks set NEXT_PUBLIC_API_MOCKING=enabled

About

https://products-page-mu.vercel.app


Languages

Language:TypeScript 92.5%Language:JavaScript 6.9%Language:CSS 0.6%