Skip to content

rl404/image-randomizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Randomizer

Just a simple website to generate random image from your chosen image list.

Can be used for randoming website background image by calling your url in CSS. Or randoming your forum's signature.

Inspired by sig.grumpybumpers.

Development

Requirement

Step

  1. Git clone this repo.
    git clone https://github.com/rl404/image-randomizer
    
  2. Rename backend/.env.sample to .env and modify according to your configuration.
  3. Rename frontend/.env.sample to .env and modify according to your configuration.
  4. Start the backend service. (Assumed the database is ready to use).
    cd backend
    make
    
  5. Open new console/terminal and start the frontend service.
    cd frontend
    npm run dev
    
  6. http://localhost:31001 and http://localhost:31002 are ready to use*.

*Port depends on port in their .env file.

With Docker + Docker compose

  1. Do step 1-3 above.
  2. Build and start docker containers.
    docker-compose up
    

License

MIT License

Copyright (c) 2022 Axel