geoff-maddock / ai-onion Goto Github PK
View Code? Open in Web Editor NEWAmerica's Finest AI Generated News Source
Home Page: https://ai-onion.vercel.app
America's Finest AI Generated News Source
Home Page: https://ai-onion.vercel.app
In order to simulate how this would work w/o having to wait for the API responses:
article
{
title: string = "Title of the onion article",
body: string = "Body of the onion article,
seed: int = size of the seed used to generate article - to differentiate the short and long version
createdAt: datetime = <time created>
image: string = "url for generated image"
}
Mock returning one article, or 12 articles, and build the layout using that.
First article is the "main" and the rest will be displayed as thumbnails or just titles.
Find the layout for The Onion that I want to copy exactly and copy it with dummy data.
Then work on replacing that.
How much do I want to get from the AI? Can I make a single query and get a number of headlines or articles?
Maybe ask for 10 headlines and then one full article?
Same with images - can I get 10 thumbnails and then one large?
If I want to make this a public site, I'll have to prevent people from maxing out my account.
Should I refresh and then store in a DB rather than in local storage?
Consider some options about how frequently to allow refresh of the content?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.