Development
Local Development Setup
If you want to run the project locally:
Prerequisites
- Node.js (recommended: latest LTS version)
- Git
Installation Steps
Clone the repo:
bashgit clone https://github.com/ProjectDepot/Gallery cd Gallery
Set up environment variables:
- Copy
.env.example
to.env
- Set your GitHub username:
VITE_GITHUB_ACTOR=your_username
Note
When deployed via GitHub Actions, the workflow handles the configuration automatically.
- Copy
Install dependencies:
bashnpm install
Fetch initial data for your GitHub profile:
bashnpm run fetch-data
Start the development server:
bashnpm run dev
The application will be available at http://localhost:5173
.
Available Scripts
npm run dev
- Start the development servernpm run build
- Build the project for productionnpm run preview
- Preview the production build locallynpm run fetch-data
- Fetch GitHub repository datanpm run lint
- Run ESLintnpm run docs:dev
- Start the documentation servernpm run docs:build
- Build the documentationnpm run docs:preview
- Preview the documentation build
Project Structure
text
├── src/ # Main application source
│ ├── components/ # Vue components
│ ├── stores/ # Pinia stores
│ ├── types/ # TypeScript type definitions
│ └── utils/ # Utility functions
├── docs/ # Documentation (VitePress)
├── scripts/ # Build and data fetching scripts
├── public/ # Static assets
└── config.*.json # Configuration files
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.