Skip to content

Node.js project : Web interface to push and pop elements to and from a Stack and display the stack.

Notifications You must be signed in to change notification settings

msnitish/stack-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Node.js project : Web interface to push and pop elements to and from a Stack and display the stack.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published