Skip to content

Gets a random image of a fox

License

Notifications You must be signed in to change notification settings

Kaympe20/fox-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 1, 2025
7bcb685 · · Nov 1, 2025

History

13 Commits
Oct 17, 2025
Oct 17, 2025
Oct 31, 2025
Oct 17, 2025
Oct 17, 2025
Oct 17, 2025
Oct 17, 2025
Nov 1, 2025
Oct 17, 2025
Oct 17, 2025
Oct 17, 2025
Oct 17, 2025

Repository files navigation

fox-api

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.

Athena Award Badge


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.

Setup

Make sure to install dependencies:

# npm
npm install



# pnpm
pnpm install



# yarn
yarn install



# bun
bun installl

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev



# pnpm
pnpm dev



# yarn
yarn dev



# bun
bun run devv

Production

Build the application for production:

# npm
npm run build



# pnpm
pnpm build



# yarn
yarn build



# bun
bun run buildd

Locally preview production build:

# npm
npm run preview



# pnpm
pnpm preview



# yarn
yarn preview



# bun
bun run previeww

Check out the deployment documentation for more information.