๐ค ๐ง ๐ผ ๐น ๐ฅ ๐ท ๐บ ๐ธ ๐ป ๐ฝ ๐ฟ ๐ ๐ฉโ๐ค ๐จ๐ปโ๐ค
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.
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.
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.
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
}
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.
To contribute words either create a pull request on this repo, or contact me on Twitter @alex_tea