Notice: Previously, the waifuchain API was served by a PHP server (hosted on a VPS), but we ended up migrating it to AWS Lambda to make it more scalable and cheaper. This repository houses both the first server as well as the scripts used on AWS Lambda.
Setup instructions:
- Create a S3 bucket with all the waifu images
- Set up CloudFront to serve the waifu images in the S3 bucket from
images.waifuchain.moe
- Set up a Lambda function (the 128MB type) using the scripts in the
lambda
directory - Set up the API gateway to trigger the lambda function on REST requests to
api.waifuchain.moe
Requires a working relational database set up following the instructions in scrapper.
Once this has been set up, just deploy all the files inside the server
directory into a LAMP server.