Code Monkey home page Code Monkey logo

valiu-url2img's Introduction

Gitpod ready-to-code

valiu-url2img

Microservice that converts requests with URL address to images

How to use

There's three ways to get the microservice running, either with vanilla nodejs, docker or online devops.

Setting up

DOWNLOAD:

Open up a command line or shell terminal and cd to a directory root for your project files, then run the following command:

git clone https://github.com/netrules/valiu-url2img.git

CONFIGURATION:

Make a file named .env in the project directory with the following data:

# using 32696 but you can use any :)
URL2IMG_PORT=32696

INSTALLING AND RUNNING:

Using Node.JS

  1. Instructions
cd valiu-url2img
npm install
npm start server

Using the Dockerfile:

  1. Instructions
docker build -t valiu-url2img/1.0 .
docker run -ti -p $HOST_AVAILABLE_PORT:$URL2IMG_PORT --name valiu-url2img valiu-url2img/1.0
  1. Notes:
    • Replace $HOST_AVAILABLE_PORT for an available port to listen to the node.js service.
      • e.g.: docker run -ti -p 32696:32696 --name valiu-url2img valiu-url2img/1.0
    • Do source .env if on linux, or replace $URL2IMG_PORT in the second line for the value in the .env file.

Deploying on gitpod

Check out the badge at the top.... ๐“ธ๐“ป ๐“ผ๐“ฒ๐“ถ๐“น๐“ต๐”‚ ๐“ฌ๐“ต๐“ฒ๐“ฌ๐“ด ๐“ถ๐“ฎ ๐Ÿ’ฉ๐Ÿค“

USAGE

Look at the example.js file :)

valiu-url2img's People

Contributors

sgtrusty avatar

Stargazers

Roman avatar

Watchers

 avatar

valiu-url2img's Issues

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.