Article: https://quicktuts.online/url-shortener
Create .env file
touch .env
DB_URL=
DB_TOKEN=
turso db create bunshortly
Get the db url
turso db show bunshortly
Get the db token
turso db tokens create bunshortly
Update the .env
file with the token and url from the above commands
To start the development server run:
bun run dev
Open http://localhost:3000/ with your browser to see the result.