nmwur / RepoView

VS Code web extension for browsing GitHub repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RepoView

This VS Code web extension allows browsing GitHub repositories. After user authorization, repo files appear in sidebar; individual files can be clicked to view contents in a panel. Includes caching and rate limiting.

image image

Stack

Local development

Prerequisites

Item Version
Node.js >= 16.17.0
Python >= 3.11.4
Docker latest
PNPM latest

Setup

  1. Get environment variables
    1. Copy the file ./apps/backend/.env.example to ./apps/backend/.env
    2. Register a new OAuth application on GitHub with these parameters:
      Key Value Example
      Application name any repoview
      Homepage URL any https://github.com/kosta7/RepoView
      Authorization callback URL http://localhost:8080
      Enable Device Flow false
    3. Copy generated Client ID and Client Secret and paste them into ./apps/backend/.env as GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET
    4. Run python -c 'import secrets; print(secrets.token_hex())' and paste the result into ./apps/backend/.env as SECRET_KEY
  2. Activate a new Python environment (e.g. using python -m venv)
    1. python -m venv apps/backend/venv
    2. source apps/backend/venv/bin/activate
  3. Install dependencies:
    1. pnpm install
    2. pip install -r apps/backend/requirements.txt
  4. Start Docker (to be able to run VS Code development server, Redis, and AWS)

Running

pnpm run dev

Contribution

The purpose of this project is to explore VS Code capabilities. Feel free to open an issue if you have a question or suggestion.

About

VS Code web extension for browsing GitHub repositories

License:MIT License


Languages

Language:TypeScript 65.7%Language:Python 26.5%Language:JavaScript 7.0%Language:HTML 0.7%Language:CSS 0.1%