This project is a backend micro-service that makes calls to GitHub organizations and get their last repositories with issues and pull requests
- Node.js or Docker installed
- GitHub Developer Account for obtaining an access token
-
Clone the repository: git clone https://github.com/omarsoufiane/github-gateway.git
-
Navigate to the repository: cd github-gateway
-
Install dependencies: npm install
Create a .env file in the root of the project and put the token you obtained from GitHub:
GITHUB_ACCESS_TOKEN=your_actual_access_token PORT=3000
-
Using npm: npm run build npm run start
-
Using Docker: docker build -t your-image-name . docker run -p 3000:3000 your-image-name
The server will be running at http://localhost:3000 by default.
Make get request to 'http://localhost:3000/orgs/{organisation-name}/' to get organisation informations