Skip to content

lalith-codeable/vite-crazy-kickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vite Crazy Kickstart

Vite Logo React Logo Recoil Logo Tailwind Logo Aceternity Logo

Vite Crazy Kickstart is a fast, feature-rich starter template for building modern React applications with TypeScript. It comes pre-configured with the following technologies:

  • Vite for fast development and hot module replacement (HMR).
  • React for building user interfaces.
  • TypeScript for static typing and enhanced developer tooling.
  • Recoil for state management.
  • TailwindCSS for utility-first, responsive styling.
  • Aceternity UI for UI components.

Features

  • Vite for blazing fast development: Instant server start and fast HMR powered by Vite.
  • Recoil for global state management: Easy-to-use state management for your React app, perfect for both small and large-scale applications.
  • TailwindCSS for utility-first styling: Pre-configured TailwindCSS for building responsive layouts quickly.
  • Aceternity UI: Pre-built UI components to help you kickstart your project with a professional look.

Preview

Here's what the template looks like out of the box:

Template Preview

Installation

You can easily create a new project using this template with the following command:

npx vite-crazy-kickstart@latest 

This will set up the template in a new folder called my-new-project. You can then navigate into your project directory and start the development server.

cd my-new-project
npm install  # Install dependencies
npm run dev  # Start development server

For pnpm or yarn users, you can use your preferred package manager instead of npm.

Build for Production

To create a production build of your project, run:

npm run build

This will output your built files into a dist folder, ready for deployment.

Folder Structure

Here’s a quick overview of the important folders in this template:

my-new-project/
├── public/              # Static assets like images, favicons, etc.
├── src/
│   ├── assets/          # Logos, images, and static assets
│   ├── components/      # Reusable components (includes UI components)
│   ├── lib/             # reusable function's and method's
│   ├── recoil/          # Recoil atoms and selectors
│   ├── index.css/       # Global CSS (including Tailwind imports)
│   ├── AppRoutes.tsx/   # declaring App routes
│   ├── App.tsx          # Main application component
│   └── main.tsx         # Entry point for React
└── index.html           # Main HTML file

Vite Configuration

Vite’s configuration is minimal but flexible. Here’s the vite.config.ts that comes with this template:

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      '@': '/src',  // Allows importing from 'src' directory using '@'
    },
  },
});

Technologies Used

Vite is a next-generation frontend tool that focuses on speed and performance. It provides instant server start and fast hot module replacement (HMR), making the development experience smooth.

React is a JavaScript library for building user interfaces, focusing on declarative, component-driven development. It's perfect for building interactive and dynamic web applications.

TypeScript provides optional static typing to JavaScript, allowing developers to catch errors early and enjoy enhanced editor tooling like autocompletion, refactoring, and more.

Recoil is a state management library for React, providing powerful, flexible tools for managing both local and global state.

TailwindCSS is a utility-first CSS framework that makes styling fast and efficient. It allows you to build responsive, mobile-first designs directly in your JSX files.

Aceternity UI provides a set of clean, customizable UI components for quickly building modern web applications. This template includes its preconfigured components to give your project a polished look right from the start.

Getting Started

Once you've installed the template, you can start adding your components and business logic. Here are a few steps to help you get started:

  1. Create Components: Start building your components in the src/components/ directory.
  2. Manage State: Use Recoil for state management. Define your atoms and selectors in the src/recoil/ directory.
  3. Style with TailwindCSS: Write your styles using Tailwind classes right in your JSX files.
  4. Add Assets: Put images, logos, and other static files in the src/assets/ folder.

License

This template is open-source and available under the MIT License.


Links:

About

An advanced vite project scaffolding npm package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published