Create some initial files.
This commit is contained in:
parent
d69a6b2e71
commit
1cabbf22f2
24
index.tsx
Normal file
24
index.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
// Date: 2023-03-07
|
||||
// Developer: Hyperling
|
||||
// Purpose: Provide a UI for folks to log a food diary, providing a simple way
|
||||
// to enter the data and an easy way to filter/sort what caused issues.
|
||||
// Resources: Most helpful tutorials when learning Typescript and React.
|
||||
// https://blog.logrocket.com/how-use-typescript-react-tutorial-examples/
|
||||
*/
|
||||
|
||||
// Attach all the needed helperss.
|
||||
import "src/includes.ts";
|
||||
|
||||
/* DB Setup */
|
||||
|
||||
|
||||
|
||||
/* Test Code */
|
||||
// Just playing with the DB until learning React.
|
||||
|
||||
|
||||
|
||||
/* Main, UI */
|
||||
|
||||
|
12
run.sh
Normal file
12
run.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
# Date: 2023-03-07
|
||||
# Developer: Hyperling
|
||||
# Purpose: Install all dependencies and run the project.
|
||||
|
||||
if [[ -z `which npm` ]]; then
|
||||
sudo apt install npm
|
||||
fi
|
||||
|
||||
npm install package.json
|
||||
|
||||
# ???
|
22
src/functions.ts
Normal file
22
src/functions.ts
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
// Date: 2023-03-07
|
||||
// Developer: Hyperling
|
||||
// Purpose: Keep main file clean by holding helper functions here.
|
||||
*/
|
||||
|
||||
import "objects.ts";
|
||||
|
||||
// Connect to a SQLite database.
|
||||
function connect_db () {
|
||||
|
||||
}
|
||||
|
||||
// Retrieve data from a connected database.
|
||||
function select_db () {
|
||||
|
||||
}
|
||||
|
||||
// Send data to a connected database.
|
||||
function post_db () {
|
||||
|
||||
}
|
7
src/includes.ts
Normal file
7
src/includes.ts
Normal file
@ -0,0 +1,7 @@
|
||||
/*
|
||||
// Date: 2023-03-07
|
||||
// Developer: Hyperling
|
||||
// Purpose: Keep main file clean by making sure all source code is available.
|
||||
*/
|
||||
|
||||
import "functions.ts";
|
13
src/objects.ts
Normal file
13
src/objects.ts
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
// Date: 2023-03-07
|
||||
// Developer: Hyperling
|
||||
// Purpose: Keep main file clean by holding types (interfaces and vars) here.
|
||||
*/
|
||||
|
||||
interface record {
|
||||
user_id: number;
|
||||
cal_date: string;
|
||||
food: string;
|
||||
caused_issue: boolean;
|
||||
comments: string;
|
||||
}
|
Reference in New Issue
Block a user