-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef2c00e
commit 5cc6a9a
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# Computers-Site-Backend | ||
The backend (node and express) portion of the updated computers site | ||
|
||
TODO: add file validation into readInventoryFile() return {} or 0 (something idk) | ||
then in each of the watcher functions, write result of readInventoryFile to a variable, check to make sure it is | ||
not the known bad value. | ||
|
||
Current plan is to flesh out this system, and then move on to the refactor. | ||
Flesh out means: make sure crud options are all available and working, add data validation options | ||
-make sure no two items with same serial, make sure database accurately reflects files in case error happens | ||
-make sure no two items with same serial, make sure database accurately reflects files in case there are any errors | ||
|
||
-Added feature to update database when a file is changed | ||
-Added validation to inventorywatcher and readInventoryFile | ||
|
||
Need: | ||
-check for duplicate serial numbers | ||
-option in dbtools to run a full check on the data to make sure it matches the database | ||
--this should probably run as soon as file watcher is started, and at regular intervals | ||
|
||
|