This is a modern web application built with Vite, TypeScript, React, shadcn-ui, and Tailwind CSS. It provides a fast and efficient development environment with a focus on performance and developer experience.
To run this project locally, ensure you have Node.js and npm installed. You can use nvm to manage Node.js versions.
-
Clone the Repository
git clone <YOUR_GIT_URL>
-
Navigate to the Project Directory
cd crystal-website -
Install Dependencies
npm install
-
Start the Development Server
Run the following command to start the development server with auto-reloading and an instant preview:
npm run dev
Open your browser and navigate to
http://localhost:5173(or the port specified in the terminal) to view the application.
npm run dev: Starts the development server with hot reloading.npm run build: Builds the project for production, outputting optimized files to thedistfolder.npm run preview: Serves the production build locally for testing.npm run lint: Runs the linter to check for code quality issues.npm run format: Formats the codebase using configured formatting tools (e.g., Prettier).
This project is built with the following technologies:
- Vite: A fast build tool and development server for modern web projects.
- TypeScript: A typed superset of JavaScript for enhanced developer experience and type safety.
- React: A JavaScript library for building user interfaces.
- shadcn-ui: A collection of reusable, accessible UI components.
- Tailwind CSS: A utility-first CSS framework for rapid UI development.
crystal-website/
├── src/ # Source files
│ ├── components/ # Reusable React components
│ ├── pages/ # Page components
│ ├── styles/ # Tailwind CSS and other styles
│ ├── App.tsx # Main App component
│ └── main.tsx # Entry point
├── public/ # Static assets
├── dist/ # Production build output (generated)
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── vite.config.ts # Vite configuration
└── README.md # This file
To deploy the project, follow these steps:
-
Build the Project
npm run build
This generates an optimized production build in the
distfolder. -
Deploy to a Hosting Service
Upload the contents of the
distfolder to your preferred hosting service (e.g., Vercel, Netlify, or GitHub Pages). Follow the hosting provider’s instructions for deploying a static site.For a quick preview of the production build locally:
npm run preview
To connect a custom domain to your deployed site, refer to your hosting provider’s documentation for setting up custom domains. Typically, this involves:
- Adding the domain in your hosting provider’s dashboard.
- Updating your domain’s DNS settings to point to the hosting provider’s servers (e.g., adding A or CNAME records).
Consult your hosting provider for detailed instructions.
To contribute to this project:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Make your changes and commit them (
git commit -m "Add your feature"). - Push to the branch (
git push origin feature/your-feature). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.