juliusiv / goascii

Creates an ASCII art version of a picture

Home Page:https://go-ascii.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goascii

I wanted to play around with Go a bit, so I decided to write a picture-to-ASCII art converter.

Setup:

// `air` for live reloading
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s

// `tailwindcss` for building our CSS
npm install -g tailwindcss

Run for local development:

// using `air` for live reloading
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s
air

// Without live reloading
go run main.go

Build the CSS:

tailwindcss -i index.css -o public/build.css --minify

Deploy to Fly.io:

flyctl deploy

About

Creates an ASCII art version of a picture

https://go-ascii.fly.dev/


Languages

Language:Go 66.7%Language:HTML 30.7%Language:JavaScript 1.9%Language:CSS 0.7%