Code Monkey home page Code Monkey logo

images-placeholder's Introduction

Hi there! This project is a simple images-placeholder. Build on Node.js with TypeScript.

Commands for development mode

First you should install all project dependencies by running npm install

After that use these:

  • to run the tests
npm run test
  • to build from src
npm run build
  • to start the development server in watch mode
npm run start

Commands for production mode

If you haven't run npm install for dev mode earlier, you can install only production dependencies by running npm install --production

After that use this command to build from src and start the server for production:

npm run start-prod

How to use

This project isn't hosted anywhere at the moment. So you should run it locally with the commands listed above.

When the server is started visit /img path with the following query params to get an image:

  • filename: encenadaport | fjord | icelandwaterfall | palmtunnel | santamonica
  • width: any reasonable number of pixels
  • height: same as width, only height

E.g.:

/img?filename=encenadaport&width=800&height=400

/img?filename=fjord&width=600&height=600

/img?filename=icelandwaterfall&width=1200&height=600

/img?filename=palmtunnel&width=800&height=1200

/img?filename=santamonica&width=300&height=300

images-placeholder's People

Contributors

mrggrgr avatar

Watchers

 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.