GitLab Application

Mr.Hope ... 2020-1-7 About 1 min

# GitLab Application

See Gitlab official docs (opens new window) for reference. Vssue can also work with self-hosted GitLab. Set the baseURL options to your Gitlab URL.

# Create a new Application

Set up OAuth App - Gitlab 01 Set up OAuth App - Gitlab 02

  • Set the Redirect URI to your site URL (Here we take localhost:8080 for example)
  • Select api scope

Set up OAuth App - Gitlab 03

# Get the Client ID

Then you’ve created a new Application, and here is your Application ID (Client ID).

Set up OAuth App - Gitlab 04

# Config and start your Vssue

Copy the Client ID, and set owner and repo.

The URL pattern of gitlab repo is https://gitlab.com/${owner}/${repo}

Here we take https://gitlab.com/meteorlxy/vssue-demo for example, and set the title of issue to Vssue Demo.

Then run anywhere -h localhost 8080 to serve the index.html on localhost:8080.

Set up OAuth App - Gitlab 05

# Try out Vssue locally

Vssue has already run here. Click Login to login with Gitlab account.

Set up OAuth App - Gitlab 06

Redirect to GitLab Authorization page. Click Authorize to login.

Set up OAuth App - Gitlab 07

Leave a comment on this page ~

Set up OAuth App - Gitlab 08 Set up OAuth App - Gitlab 09

Tips

You can go to the repository meteorlxy/vssue-demo (opens new window) to get the demo code. Check the #1 issue (opens new window) of that repository to see what happened.

Last update: March 25, 2022 03:29
Contributors: Mr.Hope