Skip to content

leonwong282/awesome-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸš€ Wesome Project Template

A modern, beautiful, and well-structured open source project template

Version License Template Platform Stars

🌍 English | πŸ‡ΉπŸ‡Ό 繁體中文

Features β€’ Quick-Start β€’ Usage β€’ Contributing

πŸ“Έ Preview

✨ Features

  • 🎯 Modern Tech Stack: React 18 + TypeScript + Vite for blazing-fast development
  • πŸ—„οΈ Database Templates: Ready-to-use SQL schemas for PostgreSQL, MySQL, and SQLite
  • οΏ½ Documentation-First: Comprehensive guides for users and contributors
  • 🀝 GitHub Integration: Issue templates, PR templates, and community health files
  • οΏ½ Code Quality: ESLint, Prettier, and EditorConfig for consistent code style
  • οΏ½ Multi-Language: Template structure supports internationalization
  • οΏ½ Migration System: Database migration templates with best practices
  • 🌱 Seed Data: Development and test data for quick project setup

πŸ› οΈ Tech Stack

  • Frontend: React 18, TypeScript, Vite
  • Database: PostgreSQL, MySQL, SQLite (templates included)
  • Code Quality: ESLint, Prettier, EditorConfig
  • Documentation: Comprehensive markdown guides
  • Community: GitHub templates, Code of Conduct, Contributing guidelines
  • License: GPL-3.0 (open source friendly)

(back to top)

πŸš€ Quick Start

Using as Template

This repository is designed as a GitHub template. You can create a new project from it using:

Method 1: GitHub Web Interface (Recommended)

  1. Click the "Use this template" button above
  2. Configure your new repository
  3. Start coding!

Method 2: GitHub CLI

gh repo create your-project-name \
  --template leonwong282/awesome-project-template \
  --public --clone

Method 3: Manual Clone

git clone https://github.com/leonwong282/awesome-project-template.git your-project
cd your-project
rm -rf .git && git init

Prerequisites

Before you begin, ensure you have the following installed:

Development Setup (After Using Template)

Once you've created your project from this template:

  1. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  2. Set up database (see Database Setup Guide)

    # Choose your database system and run schema files
    npm run db:setup    # Get setup guidance
    npm run db:seed:dev # Load development data
  3. Set up environment variables

    cp .env.example .env.local
    # Edit .env.local with your configuration
    # Don't forget to add DATABASE_URL and other database settings
  4. Start the development server

    npm run dev
    # or
    yarn dev
  5. Open your browser

    Navigate to http://localhost:3000

(back to top)

πŸ—οΈ Template Structure

This template provides a comprehensive foundation with the following components:

πŸ“ Project Organization

awesome-project-template/
β”œβ”€β”€ πŸ“š docs/                    # Comprehensive documentation
β”‚   β”œβ”€β”€ GETTING_STARTED.md      # Quick start guide
β”‚   β”œβ”€β”€ DATABASE_SETUP.md       # Database configuration
β”‚   └── README.md               # Documentation index
β”œβ”€β”€ πŸ—„οΈ database/               # SQL templates and migrations
β”‚   β”œβ”€β”€ schema/                 # Database schema files
β”‚   β”œβ”€β”€ migrations/             # Migration templates
β”‚   β”œβ”€β”€ seeds/                  # Sample data
β”‚   └── scripts/                # Setup and utility scripts
β”œβ”€β”€ 🀝 .github/                # GitHub integration
β”‚   β”œβ”€β”€ ISSUE_TEMPLATE/         # Issue templates
β”‚   β”œβ”€β”€ copilot-instructions.md # AI agent guidance
β”‚   └── pull_request_template.md # PR template
β”œβ”€β”€ πŸ“‹ Community Files
β”‚   β”œβ”€β”€ CONTRIBUTING.md         # Contribution guidelines
β”‚   β”œβ”€β”€ CODE_OF_CONDUCT.md      # Community standards
β”‚   └── SECURITY.md             # Security policy
└── βš™οΈ Configuration
    β”œβ”€β”€ package.json            # Dependencies and scripts
    β”œβ”€β”€ .editorconfig           # Code style consistency
    └── .gitignore              # Git ignore patterns

🎯 Key Components

  • Multi-language README - English and Traditional Chinese versions
  • Database Templates - Production-ready SQL schemas for major databases
  • GitHub Integration - Issue templates, PR templates, community health files
  • Documentation Hub - Comprehensive guides in /docs/
  • Migration System - Database version control with rollback support
  • Seed Data - Sample data for development and testing environments

(back to top)

πŸ“– Usage

Customizing Your Project

After creating your project from this template:

1. Update Project Information

# Replace placeholder information in:
# - package.json (name, description, author, repository)
# - README.md (project name, description, URLs)
# - docs/ files (update project-specific information)

2. Database Setup

# Choose and configure your database
npm run db:setup      # Get setup guidance
npm run db:seed:dev   # Load development data
npm run db:seed:test  # Load test data

3. Development Workflow

# Development server
npm run dev

# Code quality
npm run lint          # Check code style
npm run lint:fix      # Auto-fix issues
npm run format        # Format code with Prettier

# Build for production
npm run build
npm run preview       # Preview production build

Available Scripts

Script Description
npm run dev Start Vite development server
npm run build Build for production
npm run preview Preview production build
npm run lint Run ESLint
npm run lint:fix Fix ESLint errors
npm run format Format code with Prettier
npm run db:setup Database setup guidance
npm run db:seed:dev Load development seed data
npm run db:seed:test Load test seed data

Documentation

For detailed guides and documentation:

(back to top)

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Contribution Steps

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

πŸ“‹ Roadmap

πŸ“‹ Roadmap

  • Core Template Structure - Modern project foundation
  • Database Templates - SQL schemas for major databases
  • GitHub Integration - Issue/PR templates, community files
  • Documentation System - Comprehensive guides and setup instructions
  • CI/CD Templates - GitHub Actions workflows for common tasks
  • Docker Configuration - Containerization templates
  • Testing Framework - Unit and integration test examples
  • API Documentation - OpenAPI/Swagger templates
  • Monitoring Setup - Logging and monitoring configurations

See the open issues for a full list of proposed features and known issues.

(back to top)

πŸ“„ License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

(back to top)

πŸ‘₯ Authors

See also the list of contributors who participated in this project.

πŸ™ Acknowledgments

This template was inspired by and built upon the work of many excellent open source projects and communities. We are grateful to:

πŸ“š Documentation & Templates

πŸ› οΈ Development Tools & Standards

🎨 UI/UX Inspiration

πŸ”§ Technical Stack

🌟 Special Thanks

  • GitHub Community - For continuous inspiration and feedback
  • Open Source Contributors - Who make projects like this possible
  • Template Users - Your usage and feedback help improve this template

If you're using this template and want to add your project to our showcase, feel free to open an issue!

(back to top)

πŸ“ž Support

If you have any questions or need help, please:

(back to top)

πŸ”— Links


⭐ Star this repository if it helped you!

Made with ❀️ by Leon

About

A modern, beautiful, and well-structured open source project template for web applications.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks