Initial web app consumption/integration (#5)
Co-authored-by: Joe Arndt <jmarndt@users.noreply.github.com> Reviewed-on: #5
This commit is contained in:
parent
3f258bcd33
commit
df6733caa9
41 changed files with 385 additions and 353 deletions
80
bruno/Common Cents/seed-data.js
Normal file
80
bruno/Common Cents/seed-data.js
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
const postFakeCategories = [
|
||||
{
|
||||
name: "Utilities"
|
||||
},
|
||||
{
|
||||
name: "Automotive:Gasoline"
|
||||
},
|
||||
{
|
||||
name: "Groceries:Food"
|
||||
}
|
||||
];
|
||||
const postFakeMerchants = [
|
||||
{
|
||||
name: "Walmart"
|
||||
},
|
||||
{
|
||||
name: "Casey's"
|
||||
},
|
||||
{
|
||||
name: "Electric Company"
|
||||
}
|
||||
];
|
||||
const postFakeTags = [
|
||||
{
|
||||
name: "Truck"
|
||||
},
|
||||
{
|
||||
name: "Van"
|
||||
}
|
||||
];
|
||||
const postFakeExpenses = [
|
||||
{
|
||||
year: "2025",
|
||||
month: "12",
|
||||
day: "28",
|
||||
cents: 12153,
|
||||
category: {
|
||||
name: "Utilities"
|
||||
},
|
||||
merchant: {
|
||||
name: "Electric Company"
|
||||
}
|
||||
},
|
||||
{
|
||||
year: "2025",
|
||||
month: "12",
|
||||
day: "31",
|
||||
cents: 5500,
|
||||
category: {
|
||||
name: "Automotive:Gasoline"
|
||||
},
|
||||
merchant: {
|
||||
name: "Casey's"
|
||||
},
|
||||
tags: [
|
||||
{
|
||||
name: "Truck"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
console.log({ postFakeCategories, postFakeMerchants, postFakeTags, postFakeExpenses });
|
||||
|
||||
|
||||
// async function fetchData(url) {
|
||||
// try {
|
||||
// const response = await fetch(url);
|
||||
// if (!response.ok) {
|
||||
// throw new Error('Network response was not ok');
|
||||
// }
|
||||
// const data = await response.json(); // Wait for the JSON data to be parsed
|
||||
// console.log(data);
|
||||
// } catch (error) {
|
||||
// console.error('Error:', error);
|
||||
// }
|
||||
// }
|
||||
|
||||
// // Call the async function
|
||||
// fetchData('https://api.example.com/data');
|
||||
Loading…
Add table
Add a link
Reference in a new issue