*Note: This is highly over-engineered. This is meant to be used as testing and playing area for new stack which I'm going to implement on other projects.
Using Apollo GraphQL to implement simple text search with Maidreamin API.
With serverless architecture deploy on now.sh, divided into 2 part:
- apollo
- client
Simple express server for request management on GraphQL link with Apollo.
Simple Next.js client side for search, fire request to Apollo part to proceed the request and update.
Both two part has seperate server and URL, using CORs and add exception for client URL origin only solve the problem.
Actually, PWA support and service worker is added for caching request and app shell.
Also can actually add to homescreen for personal usage.