Coder Social home page Coder Social logo

do-community / available-images Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 2.0 3.88 MB

A simple list of all images available on DigitalOcean.

Home Page: https://do-community.github.io/available-images/

License: Apache License 2.0

JavaScript 26.60% HTML 6.98% Vue 58.77% SCSS 7.65%
digitalocean digitalocean-droplets digitalocean-marketplace digitalocean-community-tools hacktoberfest

available-images's Introduction

Available Images

A simple list of all images available on DigitalOcean.


Development/Building

To setup the build/develop environment, you will need to run npm i with Node 12+ installed. This will install the dependencies to allow you to build the project.

To build or develop this tool, you will need to create a DigitalOcean API key. To do this, sign into the DigitalOcean control panel, click "API" in the sidebar and click "Generate New Token" on the screen which appears. Simply create a read-only token, copy config.example.js to a new file called config.js and insert your token in this file.

The scripts that use this token also support an environment variable instead of the config file, set the environment variable DIGITALOCEAN_TOKEN to the token and remove the config.js file to use this method instead.

To develop for this tool run npm run dev. This will start a development server that will automatically reload the codebase when changes occur.

If you wish to host this tool on a service, simply run npm run build. This will run all the necessary build scripts automatically to build the tool.
You can then take the dist folder and put it on your web server/bucket.

GitHub Actions is setup to do this automatically for this repository to deploy to gh-pages.

Source Structure

The scss directory contains the main SCSS styling file for the tool, which imports our do-bulma library and then adds tool-specific customisations.

This directory contains the Vue templates that are used to render the tool on the client-side. app.vue is the main Vue file that other templates are referenced into.

The build directory contains a special utility script that is used during the initial build of the tool both for deployments and in development. This script uses the provided DigitalOcean API key and fetches all images, saving them to local JSON files that the tool then uses.

Contributing

If you are contributing, please read the contributing file before submitting your pull requests.

available-images's People

Contributors

dependabot[bot] avatar iamjsd avatar mattipv4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.