This is a simple web application that generates AI-powered memes using puppeteer and ImageFlip. It allows users to make GET requests to the /getAiMeme
endpoint to receive a randomly generated meme image.
To install the necessary dependencies, run: Copy code
npm install
To start the server, run:
npm start
By default, the server will be listening on port 3000. You can change the port by setting the PORT
environment variable.
Method: GET
Response: The response will be a randomly generated meme image in PNG format.
The application tracks the number of requests and the average response time. When the server is shut down using CTRL-C
or SIGINT
, the statistics will be saved to stats.json
in the root directory.