https://github.com/peterbenoit/projecttemplate2025
Template for a new Project in 2025
https://github.com/peterbenoit/projecttemplate2025
Last synced: 12 months ago
JSON representation
Template for a new Project in 2025
- Host: GitHub
- URL: https://github.com/peterbenoit/projecttemplate2025
- Owner: peterbenoit
- License: mit
- Created: 2025-05-14T18:39:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-14T10:33:43.000Z (about 1 year ago)
- Last Synced: 2025-06-14T11:30:34.573Z (about 1 year ago)
- Language: Less
- Homepage: https://project-template-2025.vercel.app
- Size: 2.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue 3 Project Template 2025
A modern, production-ready Vue 3 template with comprehensive tooling and automated setup.
## ๐ Quick Start
### 1. Use This Template
- Click the "Use this template" button above
- Create your new repository
- **Note**: This creates a separate project, not a fork
### 2. Clone and Install
```bash
git clone https://github.com/yourusername/your-new-repo.git
cd your-new-repo
npm install
```
### 3. Automated Setup (Recommended) ๐ฏ
```bash
npm run setup
```
This interactive script will:
- Replace all template variables with your project details
- Update package.json, index.html, sitemap.xml, and all config files
- Configure Google Analytics and tracking codes
- Customize console branding and meta tags
- Convert package.json keywords to proper array format
### 4. Start Developing
```bash
npm run dev
```
## ๐ What's Included
### Core Framework
- **Vue 3** with Composition API
- **Vue Router 4** for routing
- **Pinia** for state management
- **Vite** for lightning-fast builds
### Development Tools
- **ESLint + Prettier** with consistent formatting
- **Vitest** for testing with 8 example tests
- **Husky** git hooks for code quality
- **Hot Module Replacement** for instant updates
### Production Ready
- **SEO optimized** with meta tags, sitemap, robots.txt
- **PWA ready** with web manifest
- **Google Analytics & GTM** integration
- **Security headers** and CSP configuration
- **Performance optimized** builds
### Template Features
- **Automated variable replacement** system
- **Local testing** with `npm run test:template`
- **Comprehensive configuration** files
- **Example components** and composables
## ๐ง Template Variables
The template uses bracketed variables like `[PROJECT_NAME]` that get replaced during setup:
- `[PROJECT_NAME]` - Your project name
- `[PROJECT_DESCRIPTION]` - Project description
- `[AUTHOR_NAME]` - Your name
- `[AUTHOR_EMAIL]` - Your email
- `[PROJECT_URL]` - Your domain
- `[GA_MEASUREMENT_ID]` - Google Analytics ID
- And many more...
## ๐งช Testing Your Template
For template developers, test locally without GitHub:
```bash
npm run test:template
```
This creates a copy at `../test-template-project` simulating the GitHub template process.
## ๐ฆ Deployment
Ready to deploy to:
- **Vercel** (recommended) - Zero config
- **Netlify** - Auto-deploy on push
- **GitHub Pages** - Static hosting
- **Any static hosting** service
## ๐ ๏ธ Available Scripts
```bash
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run test # Run tests
npm run test:ui # Visual test runner
npm run lint # Check code quality
npm run format # Format code
npm run setup # Configure template variables
npm run test:template # Test template locally
```
## ๐ Project Structure
```
โโโ src/
โ โโโ components/ # Vue components
โ โโโ views/ # Page components
โ โโโ composables/ # Vue 3 composables
โ โโโ stores/ # Pinia stores
โ โโโ utils/ # Utilities & HTTP client
โ โโโ test/ # Test files
โโโ public/
โ โโโ js/ # Static JavaScript
โ โโโ css/ # Static CSS
โ โโโ icons/ # Favicons & app icons
โโโ scripts/ # Build & setup scripts
โโโ docs/ # Documentation
```
## ๐ค Contributing to the Template
Found a bug or want to improve the template itself?
- **Fork this repository** (not "Use this template")
- Make your changes
- Submit a pull request to improve the template for everyone
## โ ๏ธ Template vs Fork
- **Use Template**: Creates independent project (recommended for new projects)
- **Fork**: Creates connected copy (only for contributing to this template)
## ๐ Performance
- **Build time**: ~900ms
- **Bundle size**: 86KB (gzipped: 33KB)
- **CSS size**: 4.5KB (gzipped: 1.4KB)
- **Test coverage**: 8/8 passing
- **Lighthouse**: 100/100/100/100
## ๐ License
MIT License - feel free to use this template for any project.
---
**๐ฏ Production-ready Vue 3 template with automated setup!**
Built by [Peter Benoit](https://peterbenoit.com) โข [Brick City Creative](https://brickcitycreative.com)