Backend for a simple url shortener and plaintext + temporary binary store using vweb and Redis. Frontend is created using typescript and built using vite.
Shortener website here! (s.l-m.dev)
- V install
- NPM
- Redis with default configuration
Inside the main directory...
fuser -k 8080/tcp # kill process on 8080 port
v watch --add "templates/" run .
v up
sudo systemctl enable redis
cd public
npm install
cd ..
# correct setup of all deps
# npm deps for build
# v updates
# enable redis
./build/build-all.sh
# this will build the vite project
# then build the v binary after moving the correct files
./shortener-web-app
# install deps ....
./build/package.sh
# creates shortener-all.tar.gz