Giter VIP home page Giter VIP logo

stack-visualizer's Introduction

Stack Visualizer Application

drawing

Live link : https://stack-visualizer-nitish.glitch.me/

A simple Node.js app using Express 4 which serves as a web interface to :

  • Push elements to the stack
  • Pop elements from the stack
  • Set the size of stack
  • Display the elements present in stack

Stack has been implemented using Javascript array. The stack class can be found in : /stack.js

Running Locally

Make sure you have Node.js installed.

1. Clone the repository

git clone https://github.com/msnitish/stack-visualizer.git

2. Change directory to the project's root directory

cd stack-visualizer

3. Clean Install the required packages and dependencies.

npm ci

4. Start the Stack Visualizer application.

npm start

Your app should now be running on localhost:5000.

Validations

  • Set the size of stack and push input fields do not take empty input.
  • Set the size of stack input field takes only positive integral inputs.
  • If push operation is performed while the stack is full, an error message is displayed.
  • If pop operation is performed while the stack is empty, an error message is displayed.

drawing

drawing

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.