Your beautifull gradient placeholder !
fastify server is served at port 3000 by default, you can change it in the .env file. You can check other variable
You want to start a PipouColors server ? Follow this instruction.
Before check if you have already install all tools with need
git clone https://github.com/Nobodyno-boop/pipoucolorDon't forget to enter in the folder and install node libraries.
You can run the server and enjoy
npm run startYou can also edit the server with hot-reload
npm run dev| name | type | default |
|---|---|---|
| PORT | number | 3000 |
| HOST | string | 0.0.0.0 |
| RATELIMIT | number | 150 |
| name | version | infos |
|---|---|---|
| nodejs | >=6.0.0 | tested with v16.13.2 |
| python | v3.7, v3.8, v3.9, or v3.10 | see here why |
| route used | url | result |
|---|---|---|
api/v1/:width/ |
api/v1/50/ | |
api/v1/:width/:height/ |
api/v1/50/70/ | |
api/v1/:width/:height/:colors/ |
api/v1/50/50/E36387,FCFFA6/ | |
api/v1/:width/:height/:colors/:angle/ |
api/v1/50/50/E36387,FCFFA6/180/ | |
api/v1/:width/:height/:colors/ |
api/v1/50/50/FA8BFF,2BD2FF,2BFF88/ | |
api/v1/:width/:height/:colors/:angle/ |
api/v1/50/50/FA8BFF,2BD2FF,2BFF88/90/ |
| name | type | option |
|---|---|---|
| height | number | min: 1, max: 1000 |
| width | number | min: 1, max: 1000 |
| colors | string | min: 12, max: 60 (10 hex color !) |
| angle | number | min: 0, max: 360 |
Thanks to cssgradient.io ♥