The question is always "Why GitHub?". I am yet to see a project built primarily with black and white and looks this awesome. It is robust too.
This is a clone of Github. I have earlier done this before but here is a combine effort of all my previous try of which some were done over 2 years ago. For your reference, kindly check out:
- Githook - Primarily has user search functionality with some query filter functions.
- Githubb - Optimize the full potentials of GitHub GraphQL API
- Github - A clone of Github home page
I must confess, GitHub has really improved and a lot has changed. This inspired me to try it all afresh.
This is a clone of GitHub that primarily features user and repository search.
- Use the search input to search for a keyword
- The keyword returns a list of users who has the keyword in their details
- Select a user from the result to view their repositories
- Both the user and repository card has some hyperlinks which may lead you out of the app.
- This implemetation features dark mode based on system theme.
- It also has HTTP caching to avoid resources refetching.
- Vue 3 - Rendering of the UI and Reactivity system
- vue-router v4 - Vue routing system
- Composition API - A set of APIs that allows imported functions instead of declaring options
- Pinia - Vue 3 official store
- Vite - A super fast server
- Vue Apollo - Add GraphQL in your Vue.js apps with Apollo.js
- Typescript - Strongly typed programming language to add types syntax to your JavaScript
- Day.js - A fast 2kB javascript date utility library
- Airbnb JavaScript Style Guide - A JavaScript style guide
In no way have I tested the performance. I only optimize if needed.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint
- Mubarak SULAYMAN - @mubaraksulayman
See also the list of contributors who participated in this project.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. 🙇
Kindly contact me on 📧 [email protected]. You can review my resume here. 🤓. Thank you