An API that can either directly return a random raw image of a fox using base64 or return a random URL of an image of a fox.
I made this project because of a friend's message saying there needed to be one. All images in the project are courtesy of her.
The project uses Nuxt 4 and the fs api in node. In the future, I would like a slack bot that automatically takes images posted by the friend in question and adds them to the folder, although that is not yet implemented.
It was really hard working with the local filesystem, espcially as development/source repository locations are not the same as production locations. Another really hard part was figuring out how to directly send image data as an API response.
Development
Look at the [Nuxt documentation]((https://nuxt.com/docs/getting-started/introduction) to learn more.Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installlStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devvBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run builddLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewwCheck out the deployment documentation for more information.