Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.72 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.72 KB

cubeascii

(c) Copyright 2024 linuxfandudeguy

Static Badge Static Badge Static Badge

web dev

Info

cubeascii is a api written in Node.js with Express.js.

cubeascii is based off of cube.c by @servetgulnaroglu

Each time you make a HTTP request, the cubeascii api will display a frame from a 3D animation of a cube spinning in ASCII art.

In order to make an animation out of this you would need to make a HTTP GET request with cURL to https://cubeascii.netlify.app every 0.02 seconds which is why it's recommended to automate the requests.

Running Locally

To run cubeascii locally, you need to follow these instructions:

  1. Clone the repo
git clone https://github.com/linuxfandudeguy/cubeascii.git
  1. Enter the directory
cd cubeascii
  1. Running
node api/non_deployment_index.js

You have now successfully ran cubeascii locally.

Automation

In order to make an animation out of this, you can simply run this command in your terminal:

while true; do
    curl https://cubeascii.netlify.app/
    sleep 0.02  # Adjust the sleep time as needed
done

Locally Ran Automation

while true; do
    curl http://localhost:3000
    sleep 0.02  # Adjust the sleep time as needed
done