A modern, beautiful, and well-structured open source project template
π English | πΉπΌ ηΉι«δΈζ
Features β’ Quick-Start β’ Usage β’ Contributing
- π― 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
- 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)
This repository is designed as a GitHub template. You can create a new project from it using:
Method 1: GitHub Web Interface (Recommended)
- Click the "Use this template" button above
- Configure your new repository
- 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
Before you begin, ensure you have the following installed:
- Node.js (v18.0.0 or higher)
- Git
- Database System (PostgreSQL, MySQL, or SQLite)
- GitHub CLI (optional, for Method 2)
Once you've created your project from this template:
-
Install dependencies
npm install # or yarn install # or pnpm install
-
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
-
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
-
Start the development server
npm run dev # or yarn dev
-
Open your browser
Navigate to http://localhost:3000
This template provides a comprehensive foundation with the following components:
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
- 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
After creating your project from this template:
# Replace placeholder information in:
# - package.json (name, description, author, repository)
# - README.md (project name, description, URLs)
# - docs/ files (update project-specific information)
# 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
# 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
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 |
For detailed guides and documentation:
- π Documentation Hub - Complete documentation index
- π Getting Started - Detailed setup instructions
- ποΈ Database Setup - Database configuration guide
- π€ Contributing - How to contribute to your project
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- 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.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
- Leon Wong - Initial work - leonwong282
See also the list of contributors who participated in this project.
This template was inspired by and built upon the work of many excellent open source projects and communities. We are grateful to:
- Best-README-Template - Excellent README structure and formatting inspiration
- Keep a Changelog - Changelog format standards
- Contributor Covenant - Code of Conduct template
- Shields.io - Beautiful and informative badges
- EditorConfig - Consistent coding styles across editors
- Semantic Versioning - Version numbering standards
- GitHub - Platform and tools that make open source collaboration possible
- GitHub's own templates - Official GitHub repository templates
- Awesome README - Curated list of awesome READMEs
- readme.so - README editor and generator
- Node.js - JavaScript runtime
- Vite - Build tool and development server
- TypeScript - Type-safe JavaScript
- React - UI library
- ESLint - Code linting
- Prettier - Code formatting
- 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!
If you have any questions or need help, please:
- π Open an issue
- π¬ Start a discussion
- π§ Email us at: [email protected]
- π Visit my blog: leonwong282.com
- Live Demo: https://your-demo-url.com
- Documentation: https://docs.your-project.com
- API Reference: https://api.your-project.com
- Blog: https://leonwong282.com/
β Star this repository if it helped you!
Made with β€οΈ by Leon