Giter VIP home page Giter VIP logo

github-commit-history's Introduction

GitHub Commit History

Prerequisites

Have Node.js installed with version 18 and up and npm with version 9.6 and up. You can check your version for each with the following commands:

node -v
npm -v

Installing

# Clone the repository
git clone https://github.com/AlejandroGH97/github-commit-history

# Navigate to the repository directory
cd github-commit-history

# Install dependencies for the server
cd backend
npm install

# In a sepparate terminal window, install dependencies for the client
cd frontend
npm install

Your app should now be running on http://localhost:5173.

Environment Setup

To run this project, you will need to add the following environment variables to your .env files in both the frontend and backend directories.

Backend Environment Setup

  1. GITHUB_TOKEN: This token is used to authenticate requests to the GitHub API.

    • To generate a GitHub token, follow these steps:
      • Visit GitHub Tokens Page
      • Click on Generate new token.
      • Give your token a name, select the scopes or permissions you want to grant this token (for fetching repositories, basic read access is sufficient).
      • Click Generate token at the bottom.
    • Once you have your token, create a .env file in the root of the backend directory and add the following line:
      GITHUB_TOKEN=your_github_token_here

Frontend Environment Setup

For the frontend, create a .env file in the root of the frontend directory and add the following line:

VITE_BACKEND_URL=http://localhost:3000

This will set the URL of the backend server for the frontend to communicate with.

Running the tests

# Backend tests
cd backend
npm run test

Running the app

In sepparate terminal windows, navigate to the backend and frontend directories.

# Build the server
npm run build
# Run the backend server
npm run start:prod

# Run the frontend client
npm run dev

Built With

github-commit-history's People

Contributors

agohof avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.