Skip to content

robbiand/frontend-wizard

Repository files navigation

🚀 React + TypeScript + Vite Project

This project is a React application built with Vite for lightning-fast development, TypeScript for type safety, and Vitest for testing.
It also uses JSON Server to simulate backend APIs during development.


🧩 Tech Stack

Technology Description
Vite A blazing-fast build tool for modern frontend development
⚛️ React A JavaScript library for building user interfaces
🧠 TypeScript A superset of JavaScript that adds static typing
🧪 Vitest A fast unit testing framework for Vite
🌐 JSON Server A mock REST API for simulating backend data
🧹 ESLint A linter to maintain code consistency and quality

🛠️ Installation

Make sure you have Node.js (>=18) and npm/pnpm/yarn installed.

# Clone the repository
git clone https://github.com/username/repository-name.git

# Navigate to the project folder
cd repository-name

# Install dependencies
npm install

🚀 Running the Project

Development Mode

Run the following command to start the React app along with two instances of JSON Server:

npm run serve

Production Build

To create a production-ready build:

npm run build

The output will be available in the dist/ directory.

To preview the production build:

npm run preview

Run JSON Server Only

If you only need one of the mock servers running:

# Step 1
npm run json:step1

# Step 2
npm run json:step2

🧪 Testing

This project uses Vitest with the jsdom environment.

Run all tests:

npm test

Or enable watch mode:

npm run test -- --watch

🧹 Linting

To ensure code consistency and quality, run:

npm run lint

📁 Project Structure (Example)

.
├── src/
│   ├── api/
│   ├── components/
│   ├── hooks/
│   ├── pages/
│   ├── utils/
│   ├── App.tsx
│   └── main.tsx
│   └── style.css
├── data/
│   ├── db-step1.json
│   └── db-step2.json
├── public/
├── tsconfig.json
├── vite.config.ts
└── package.json

🧑‍💻 Author

Made with ❤️ by Andrian Robby

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors