Skip to content

alextea/music-genre-ator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

85 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Music Genre-ator

music genre-ator

Generate your own music genre

๐ŸŽค ๐ŸŽง ๐ŸŽผ ๐ŸŽน ๐Ÿฅ ๐ŸŽท ๐ŸŽบ ๐ŸŽธ ๐ŸŽป ๐Ÿ’ฝ ๐Ÿ’ฟ ๐Ÿ”Š ๐Ÿ‘ฉโ€๐ŸŽค ๐Ÿ‘จ๐Ÿปโ€๐ŸŽค

This is a small web app built using Express that generates fake musical genres from a list of candidate words.

It uses loune/web-rendering-lambda running on an AWS Lambda instance to create screenshots of the genres and uploads them to an S3 bucket for use as social sharing images.

Installing ๐Ÿ’พ

To run the app locally, clone the repo and then run npm install

npm run deploy will build the css files, create the sqlite3 database and copy the static assets

Then you can run npm run dev-start to run the app using nodemon and watch the scss files for changes.

Screenshots ๐Ÿ–ผ

To capture the screenshots you will need your own install of loune/web-rendering-lambda and a publicly readable S3 bucket to save the images in.

Configuration โš™๏ธ

You will need to create a file called config.json in the root folder in order to capture the screenshots

{
  "screenshotUrl": "", // the url to access your install of web-rendering-lambda
  "saveS3Bucket": "", // the name of the S3 bucket to save the screenshots to
  "saveS3Region": "", // the region the S3 bucket is in
  "screenshotW": 1200, // the width of the screenshots
  "screenshotH": 630, // the height of the screenshots
  "screenshotFormat": "png" // the format to capture the screenshots
}

List of words ๐Ÿ“œ

The list of words is stored in /data/words.json and is separated in adjectives and nouns.

The genres are generated from the list of words combining 1-3 adjectives with 1-3 nouns at random.

Contributing words ๐Ÿ“

To contribute words either create a pull request on this repo, or contact me on Twitter @alex_tea

About

Generate random music genres ๐ŸŽถ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published