A simple Hello World application built with React and TypeScript. This project is intended to be a minimal barebone setup with essential dependencies for building and testing a React application using TypeScript.
This repository contains a minimal setup for a React project using TypeScript. The project includes configurations for testing with Jest and Testing Library, as well as Babel plugins for handling modern JavaScript features.
Ensure you have the following installed:
- Node.js (version 16.x or higher recommended)
- Corepack (included with Node.js 16.10+)
- Yarn 4 (managed via Corepack)
Clone the repository and install the dependencies:
git clone git@github.com:kha1ne/diu6p.git
cd diu6p
corepack enable
corepack prepare yarn@4.9.1 --activate
yarn installTo start the development server, run:
yarn startThis will start the app at http://localhost:3000. The page will automatically reload if you make edits.
To build the app for production, run:
yarn buildThe production-ready code will be in the build folder.
This project uses Jest and Testing Library for unit and integration testing.
To run the tests, execute:
yarn testCoverage reports are generated automatically and can be found in the coverage folder after running the tests.
diu6p/
├── public/ # Static assets
├── src/ # Application source code
│ ├── components/ # React components
│ ├── __tests__/ # Test files
│ ├── index.tsx # Entry point for React
│ └── setupTests.ts # Jest setup file
├── package.json # Project metadata and dependencies
└── tsconfig.json # TypeScript configurationyarn start: Starts the development server.yarn build: Builds the project for production.yarn test: Runs the tests with coverage.yarn eject: Ejects the configuration (if needed).
This project is licensed under the MIT License. See the LICENSE file for more information.