This is stylesheet generator ( .css files ). You pick an input pattern on ColourLovers and provide the ID to app to generate a Bootstrap theme based on pattern chosen.
npm install
npm run start
npm run test
- Pick a theme, for now the only one possible is
bootstrap
- Visit ColourLovers and grab the ID of a cool pattern
- fire the request with payload like:
POST localhost:3000/build
{
"patternID": 582552,
"theme": "bootstrap"
}
The response should be like:
{
"css": "css/bootstrap582552.css"
}
{
"cssPath": "http://localhost:3000/css/582552",
"demo": "http://localhost:3000/demo/bootstrap/582552"
}
Then you are able to get the CSS file with :
GET localhost:3000/css/bootstrap582552.css
Or point the browser to the demo to have a look on the new CSS.
There is not a deployment pipeline set up, but here are some ideas on how I pretend to proceed.