Coder Social home page Coder Social logo

esironal / upload-files-github.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aurelioderosa/upload-files-github.js

0.0 2.0 0.0 128 KB

Demo that shows how to upload any file on GitHub using Github.js

CSS 23.33% HTML 14.77% JavaScript 61.90%

upload-files-github.js's Introduction

Upload files on GitHub using Github.js

This repository contains the demo I've developed as a part of an article written for my blog. The project shows how to use Github.js to upload any file on GitHub, including images, documents, PDFs, and much more.

Run the project

Before you can use the demo you have to perform two simple steps:

  1. Update the username, password, and repository properties of the config variable defined in the js/main.js file:
    • usernameis your username on GitHub.
    • password is either your password or, if you enabled the two-factor authentication on GitHub, an authentication token.
    • repository is the name of the repository where you want to upload the files.
    • branchName (optional) The name of the repository's branch you want to update. If the repository hasn't the branch you specify, the request will fail. If you don't change this value, the demo will search for a branch called master.
  2. Once updated the configuration, run the following commands:
npm install
npm run-script build

Done! You're ready to go.

License

This demo is licensed under the CC-BY-4.0 ("Creative Commons Attribution 4.0").

Author

Aurelio De Rosa (@AurelioDeRosa)

upload-files-github.js's People

Contributors

aurelioderosa avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.