Skip to content

utauyo/random-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Image

This Node.js application serves a random image from a directory when you make a GET request to the root URL (/).

Usage

  1. Clone the repository:
git clone https://github.com/madasxyz/random-image.git
  1. Install the dependencies:
npm install
  1. To start the server, run:
npm start

The server will listen on port 3000 by default. You can change this in the index.js file.

About

An express.js program that responds to requests with a random image from a folder

Resources

License

Stars

Watchers

Forks