This project is a starter template for creating React Three Fiber (R3F) applications with TypeScript. It includes all the necessary configuration to get started with R3F and TypeScript, including:
- A basic R3F scene with a spinning cube
- A basic Vite configuration with support for TypeScript, CSS and file loading
To get started, clone the repository and install dependencies:
git clone https://github.com/badreddinkaztaoui/r3f-starter-with-typescript.git
cd r3f-starter-with-typescript
npm install
or
yarn
Then, start the development server:
npm run dev
or
yarn dev
This will start the development server at http://localhost:5173/
.
To build the application for production, run:
npm run build
or
yarn build
This will create a production-ready bundle in the dist
directory.
This project is licensed under the MIT License - see the LICENSE file for details.