Skip to content

๐Ÿœ๏ธ Dune project is an automated way to publish Dune Quote artwork on Redbubble with recommended size and resolution.

Notifications You must be signed in to change notification settings

Aktilor/dune-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dune Project Logo

Dune Project ๐Ÿœ๏ธ

Dune Project is an automated way to generate and publish Dune Quote artwork on Redbubble with the recommended size and resolution. Create stunning images with quotes from the Dune movies, beautifully presented with captivating backgrounds and cool fonts.

Features ๐ŸŒŸ

  • ๐Ÿ“œ Generate Dune quotes with a single click
  • ๐ŸŽจ Customize fonts, colors, and positions
  • ๐ŸŒ… Use captivating images from Unsplash as backgrounds
  • ๐Ÿ–ผ๏ธ Save generated images in high resolution
  • ๐Ÿš€ Automated publishing on Redbubble (coming soon)

How It Works ๐Ÿ› ๏ธ

  1. The script sends a GET request to the Dune API to retrieve a random quote from the Dune movies.
  2. The quote is sent to the Bruzu API, an image generator that creates an image with the quote.
  3. The generated image is saved in the root folder of the project, ready for use.

Installation ๐Ÿ“ฅ

# Install dependencies
npm install

# Import Tailwind
npm tailwind:css

# Start the project
npm start

IMPORTANT: Create a .env file in the root directory and use .env.example as a reference. Make sure to add your Bruzu API key:

API_KEY_BRUZU=YOUR-BRUZU-API-KEY

Usage ๐Ÿ–ฅ๏ธ

Go to localhost:3000/quote to generate a quote with a beautiful background and cool font ๐Ÿ˜Ž.

You can customize the Bruzu URL in the routes/quote.js file to change fonts, colors, positions, and more. Refer to the Bruzu Documentation for additional customization options.

axios.get(encodeURI('https://img.bruzu.com/?apiKey='+process.env.API_KEY_BRUZU+'&backgroundImage=https://source.unsplash.com/zuueig1w8WI/7632x6480&h=6480&w=7632&a.text=' + quote + '&a.color=white&a.fontFamily=Poppins&a.fontWeight=800&a.width=7632&a.fs=375&a.ta=center'), {responseType: "stream"} )  
        .then(response => {  
            // Saving file to working directory  
            response.data.pipe(fs.createWriteStream("output.png"));  
        })  
            .catch(error => {  
            console.log(error);  
        }); 

โžก๏ธ Output file at root: output.png

Example ๐Ÿ“ธ

Dune Project Example

Upcoming Features ๐Ÿ“

  • Add the auto-publishing feature on Redbubble
  • Add the possibility to enter a custom Unsplash URL for the background image

Author โœ๏ธ

Aktilor - 2021

Embark on a creative journey with Dune Project and share your love for the Dune universe with the world! ๐ŸŒŒ๐Ÿช

About

๐Ÿœ๏ธ Dune project is an automated way to publish Dune Quote artwork on Redbubble with recommended size and resolution.

Resources

Stars

Watchers

Forks

Languages