The goal is to create a web application that allows to search for GitHub users and their public contributions through the GitHub API.
This repository follows a branching strategy with three main branches:
- main: This branch reflects the stable and deployable version of the application.
- stage: This branch is used for pre-production testing and validation. Features and fixes that are ready for deployment to production are merged into this branch for final testing.
- dev: This branch is the development branch where new features and bug fixes are integrated.
- Nuxt.js - A powerful Vue.js framework for building modern web applications.
- Tailwind CSS - A highly customizable CSS framework for rapid UI development.
- nuxt-svgo: Module for optimizing SVG files in the project.
- @nuxt/image Module for image optimization and handling responsive images.
- @pinia/nuxt - A modern and lightweight state management library for Vue.js (Nuxt.js compatible).
- DaisyUI - A plugin for Tailwind CSS that adds a set of customizable classes and color names.
- @nuxtjs/color-mode - Dark and Light mode with auto detection for Nuxt.
The project follows the following Nuxt 3 structure:
- assets: Global stylesheet, icons, and SVG files.
- components: Vue components.
- public: Static assets.
- interfaces: TypeScript interfaces for defining data structures.
- server: Server-side logic and API handlers.
- stores: Pinia stores for managing state.
- utils: Utility functions and helpers.
- Single Page Application (SPA).
- Search bar to look up GitHub users by username.
- Display user information including avatar, username, name, followers, bio, and repositories owned indicating fork and star counts.
- Error handling for non-existent usernames.
- Light/Dark color modes.
Ensure you have the following prerequisites installed before setting up the project locally:
Additionally, obtain a GitHub personal token and set it up in a .env file at the root of the project:
# .env
GITHUB_TOKEN=github_pat_...
-
Clone the Repository:
git clone [email protected]:C-Valen/github-users-app.git # access cloned project directory cd github-users-app
-
Install Dependencies:
npm install # or yarn install
To run the project locally, use the following command:
npm run dev # or yarn dev
Visit http://localhost:3000 in your browser to interact with the project.
-
To build the application:
npm run build # or yarn build
-
To locally preview production build:
npm run preview # or yarn preview
Visit the provided deployment URL to access the live system.
Check out the deployment documentation for more information.
This project is licensed under the MIT License.
Email: [email protected]
Feel free to reach out for any questions or feedback.
Crafted with ❤️ by Carlos.