Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
.git
.gitignore
README.md
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:22-alpine

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 5173
CMD ["npm", "run", "dev"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,17 @@ Step through **state transitions** and **table updates** interactively to unders
git clone https://github.com/<your-username>/Algo-Visualizer.git
cd Algo-Visualizer
```
## 🐳 Run with Docker

Make sure **Docker** is installed and running on your system.
You don’t need to install **Node.js** or any dependencies manually — Docker handles everything.

To start the development server, run:

```bash
docker compose up
```
Then open http://localhost:5173 in your browser to view the app.
### 2️⃣ Install Dependencies
```bash
npm install
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
algo-visualizer:
build: .
container_name: algo-visualizer-dev
ports:
- "5173:5173"
volumes:
- .:/app
- /app/node_modules
command: ["npm", "run", "dev", "--", "--host"]
Loading