This is a Next.js typescript project bootstrapped with create-next-app
.
Prerequisites:
- Node.js: Check for the correct version specified in the
.nvmrc
file. - nvm: (Recommended) Node Version Manager for easily switching between Node.js versions.
- pnpm: Fast, disk space-efficient package manager.
Steps:
- Clone: Clone the repo to your local machine:
git clone [email protected]:steven-js/product-landing-page-concept.git
- Install Dependencies:
pnpm i
Start the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
This project uses next/font
to automatically optimize and load Poppins, a custom Google Font.
- next: Core Next.js framework.
- react & react-dom: Core libraries for building UI components.
- swiper A flexible slider library.
- clsx: Generates conditional class names in components.
- style-dictionary: A tool for generating CSS custom properties from design tokens.
- jest: Testing framework.
- storybook: UI component development environment.
- ts-node: Required for Jest testing with TypeScript.
Styling is managed using CSS modules (.module.css
). Variables are defined globally for reuse across components.
Jest is used as the unit testing framework, with React Testing Library.
A github workflow has been setup to run the tests on every push to the branch.
Running tests:
• To run all tests manually:
pnpm test
• To run tests with coverage:
pnpm jest --coverage
Run pnpm run storybook
to open Storybook's built-in development server.