Astro is a modern front-end framework designed to build fast websites with minimal JavaScript. It focuses on content-first development and provides the flexibility to use various frameworks like React, Vue, Svelte, and more while ensuring your site is lightweight and optimized for performance. Astro generates static HTML by default, which helps in improving SEO (Search Engine Optimization) and page load speeds.
Tailwind CSS is a utility-first CSS framework that makes it easy to build custom designs quickly. Instead of writing custom CSS, you apply pre-defined classes directly in your HTML. This approach allows for rapid development and makes it easy to adjust the design of your site without writing a lot of extra code.
Shadcn is a component library that works well with Tailwind CSS. It provides a set of pre-built, customizable UI components that can be used in your projects to make design and development faster and easier. The components are designed with accessibility and responsiveness in mind, ensuring they work well across different devices and screen sizes. By integrating Shadcn, you can quickly enhance the user interface without needing to build everything from scratch.
Start by cloning this repository to your local machine:
git clone <repository-url>Navigate to the project folder and install the required dependencies using bun:
cd <project-directory>
bun installBefore making any changes, create a new branch for your work. Name the branch according to the feature or fix you're working on. For example:
git checkout -b feat/new-featureOr for bug fixes:
git checkout -b fix/bug-nameStart the local development server:
bun devYou can now view the project at localhost:4321 in your browser.
To build the production version of your site:
bun buildBefore deploying, preview your build locally:
bun previewTo maintain a clean and understandable project history, follow these commit rules:
-
Commit Messages:
- Use the present tense. Example: "Add new feature" instead of "Added new feature."
- Keep the message brief (under 50 characters).
- If necessary, provide a detailed explanation after a blank line.
-
Types of Commit Messages:
- feat: New feature or improvement.
- fix: Bug fix.
- docs: Documentation changes.
- style: Changes that do not affect functionality (e.g., formatting, missing semicolons).
- refactor: Refactoring code without changing functionality.
- test: Adding or modifying tests.
- chore: General tasks or maintenance.
-
Example Commit Message:
feat: add dark mode support
When opening a pull request (PR), please follow these guidelines:
-
Descriptive PR Title:
- Use a clear and concise title that summarizes the changes.
-
PR Description:
- Provide a detailed description of what was changed, why it was changed, and any additional context for reviewers.
-
Linking Issues:
- If the PR addresses an open issue, mention it in the PR description. Example:
Closes #123
- If the PR addresses an open issue, mention it in the PR description. Example:
-
Test Your Code:
- Ensure that your code works correctly and does not break existing functionality.
-
Request a Review:
- Assign at least one team member to review your PR before merging.
bun create astro@latest -- --template minimal