Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
View longlong2o's full-sized avatar

Block or report longlong2o

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
longlong2o/README.md

JG-docs

Overview

This project is yet another example integration with filesystems different types of files. Currently, supported is only Bitbucket repository "filesystem". Its main benefit is that it requires no server to work: it bases on free solutions.

This project is a kind of framework/template for new applications - if you want to use it, just fork this repository. It is designed to be extendable - if you need, you can write your own file readers and integrate with other types of repositories e.g. Github.

Demo

To see demo of this app please visit my Github pages:

https://jgardo.github.io/jg-docs/

Technology stack

It bases on Ionic integrated with Angular. This is framework for creating mobile apps in javascript. It uses rxjs, bitbucket client.

Supported out-of-the-box operations:

  • read directories
    • refreshing structure,
    • reading next pages of file entries with infinite scroll
  • read text/markdown
  • add multiple repositories
  • support of Chrome, Firefox, Safari

Requirements

To run project npm and node are required (6.14.8 and v14.15.0, however it may work on older versions too).

Local run

There are two commands you need to run to start project locally. First is:

npm install

Then you need to run

npm start

Your local instance should run on http://localhost:4200/

However, to make this application usable, additional configuration at Bitbucket side is required. Details in section below.

Configuration

Bitbucket

Currently, only Bitbucket integration is supported. To use Bitbucket repository as filesystem source you need to configure it properly:

Bitbucket workspace configuration

  1. Authenticate to your Bitbucket space (https://bitbucket.org/dashboard/overview)

  2. Create a new Workspace - https://bitbucket.org/workspace/create/ (if you want to use existing you may skip this step) Create workspace 1 Create workspace 2

  3. Create a new project for this workspace (if you want to use existing you may skip this step)

  4. Create a new repository for this project (if you want to use existing you may skip this step)

  5. Go back to workspace, and then go to its settings Go back to workspace settings

  6. Go to OAuth consumers and click Add consumer button

  7. For local purposes configure it:

  8. Copy newly created key of created OAuth Consumer Oauth Consumer Key

  9. Paste this key in configuration file in your sources (src/environments/environment.ts). It should look like that:

    export const environment = {
       production: false,
       bitbucketClientId: '<copied-key>',
       fixedWorkspaceId: null
    };
    

Testing

Currently only e2e tests are supported. These use protractor to manipulate browser.

To run e2e tests run:

npm run e2e

Deployment

There are several options of deployment.

  1. Ionic offers simplified deployment to google firebase. To see more details visit: https://ionicframework.com/docs/angular/pwa#firebase
  2. There is posibility of deployment to Github pages. To see more details visit workflow: https://github.com/jgardo/jg-docs/blob/main/.github/workflows/main.yml

In future there are plans to support native mobile applications.

Pinned Loading

  1. longlong2o longlong2o Public

    longlong2o/longlong2o is a ✨special ✨ repository

    TypeScript

  2. lyxass lyxass Public

    WIP: Move BJL over to rln/rmac/lyxass

  3. webextensions webextensions Public

    BookmarkViewer add-on supporting Firefox webextensions APIs

    C++

  4. WMMA WMMA Public

    Several optimization methods of half-precision general matrix multiplication (HGEMM) using tensor core with WMMA API and MMA PTX instruct…

    JavaScript

Morty Proxy This is a proxified and sanitized view of the page, visit original site.