Skip to content

asgarzee/rotation

Repository files navigation

Image Rotation algorithm

The project implements a image rotation algorithm. This provides a class Rotator which can be imported to rotate an image at specific angle given in radian. rotator.js file has the source code for Rotator class in static directory. This algorithm has its limitation as well. The rotated image gets cropped from the sides when done on angles other than 90, 180, 270 and 360 degrees. The project uses Jest for testing and performance API to measure performance matrices.


Requirements

For development, you will need Node.js, express.js and NPM installed in your environement.

Installation

  • Node

Just go on official Node.js website and download the installer.

  • Express

npm install express --save
  • Clone repo

git clone [email protected]:asgarzee/rotation.git
cd rotation
  • Install Dependencies

npm install

Running

  • Run the App

node app.js
  • Open in browser to see it in action

http://localhost:3000
  • Run tests

npm test
  • Code Coverage

npm test -- --coverage

References

Docker to run App

Steps to run using docker

  • Build docker image

docker build -t <your username>/node-rotation-app .
  • Build docker image

docker run -p 3000:3000 -d <name of your image repo>
  • Go to the following url

http://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published