This project is a web-based application for searching, previewing, and selecting website templates from GitHub. It provides users with the ability to search for different types of templates, filter based on categories, and bookmark their favorite templates. The application is built using Express.js on the backend, and HTML, CSS, and JavaScript on the frontend.
- Search website templates by keyword or type (e.g., ecommerce, portfolio, blog, etc.)
- Filter templates by stars, forks, or recent updates
- Preview website templates directly from GitHub
- Bookmark favorite templates for easy access
- Responsive design for different screen sizes
- Download the repo as a zip file
-
Clone the repository:
git clone <your-repo-url>
-
Start the server.
-
Open the application by visiting
http://localhost:3000in your browser.
server.js: Contains the backend logic using Express.js, fetching templates from GitHub and serving static files.public/index.html: The main HTML page with the UI for searching and displaying templates.public/styles.css: Styles for the UI, including the layout of the sidebar, main content, and template cards.public/script.js: Client-side JavaScript for handling template fetching, filtering, and bookmarking.
GET /api/templates: Fetch templates from GitHub based on search query, template type, and sort order.GET /api/preview: Fetch theindex.htmlof a GitHub repository for previewing templates.
- Search Templates: Enter a keyword or select a template type to search for templates.
- Filter Templates: Use the dropdown menus to filter templates by stars, forks, or recent updates.
- Preview Templates: Click the "View Demo" button (if available) to see a live preview of the template.
- Bookmark Templates: Bookmark your favorite templates by clicking the "Bookmark" button, and view them later in the bookmarks section.
- Backend: Node.js, Express.js
- Frontend: HTML, CSS, JavaScript
- API: GitHub API for searching and retrieving templates
- Environment Variables:
.envfor GitHub token and port configuration



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