GitHub Bookmark Saver is a Chrome extension that you can use to save your web site links to GitHub. Thus, you can easily save your links to GitHub without copying, pasting or committing them.
Note: Before the installation, Node.js and Git should already be installed.
- Open your terminal and clone the repository.
git clone ErtanOzdemir/github-bookmark-saver-chrome-extension
- Go to the project's root directory and install all dependencies and dev-dependencies.
npm install
- Create a
.env
file in the root directory. - Copy all variables below into the
.env
file.
GITHUB_AUTH_TOKEN=
GITHUB_REPOSITORY_NAME=
GITHUB_CONTENT_PATH=
GITHUB_REPOSITORY_OWNER=
GITHUB_COMMITTER_NAME=
GITHUB_COMMITTER_EMAIL=
Variable | Description |
---|---|
GITHUB_AUTH_TOKEN |
You have to have a GitHub auth token for accessing your repositories. You can follow GitHub's token creation guide. |
GITHUB_REPOSITORY_NAME |
This variable should contain the name of the repository where you want to save the website links. |
GITHUB_CONTENT_PATH |
This variable must contain the path on GitHub to the file where you want to save the links. For example if file is exist on root directory in GitHub you can write README.md |
GITHUB_REPOSITORY_OWNER |
This is your GitHub username (example: ErtanOzdemir ). |
GITHUB_COMMITTER_NAME |
This is your name (example: Ertan Ă–zdemir ). |
GITHUB_COMMITTER_EMAIL |
This is your email address that is used on GitHub. |
- Run the extension
npm run start
This command creates a folder called dist
in the root directory of the project. To upload the extension to Chrome, you can follow the Chrome Extension Upload instructions.
All done!
- When everything is complete, a black button will appear in the bottom right corner of the browser screen.
- When the button is clicked, a pop-up will open with the information of the site you are currently in.
- Only the
Title
andCommit Message
inputs are changeable on this screen. - When the
Add
button is pressed, the existing link will be added to the bottom line in the file you specified on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.