utdallasepics / caccc_resource_database Goto Github PK
View Code? Open in Web Editor NEWCode for UTD EPICS resource database project for CACCC
Code for UTD EPICS resource database project for CACCC
No more overly crowded state columns (with full state name text in one narrow column)
Default selected 'TX' value for ease of use
Tight coupling between views and API makes it hard to reason about what is happening. Instead of GET requests for everything, those should be limited to loading of pages. Updates and deletions should be performed as individual requests that do not reload the whole page, but instead update small chunks such as displaying a success/error dialog.
Possibly look into Vue/Nuxt or similar framework for the frontend to help with conceptual/organizational separation of frontend/backend. You can go with either an SPA or a static site for the frontend.
No more disruptive pop-up for viewing failures
Several areas could use splats instead of manual assignment, eg the insertRecord function in resourceController could be expressed better as
resource = {... req.body, processResouceType(req.body.resourceType), resourceReferrals = 0}
etc
No longer have to delete an entire resource to just delete a PDF
Website and Links are hyperlinked.
Don't need to delete an entire resource anymore in order to remove a PDF
Node code should not be managing database, nor should it require the user to have a TTY open (running from the bat file)
Mongo service should be started via npm script, and build system should use npm scripts to manage node_modules instead of them being committed to git
Example: npm run server
in package.json:
"scripts": {
"server": "concurrently 'mongod --config ./mongo.conf' 'node server.js'"
}
Alternatively, mongod can be configured as a service.
Remove associated orchestration and config code from server.js, paths should be set via .env instead of as flags
If something doesn't exist, server shouldn't crash but should instead return a message to the front end.
The layout of the table should not be disrupted when the window is resized
Instead of using sync operations (eg fs.readdirSync), use asynchronous operations to prevent blocking on IO. Look at async/await syntax.
Decrease green border size to make better use of viewport
Current deployment and update depends on cloning this repository in its entirety, including the whole node_modules folder. This is generally considered Bad Practice.
Ask Taz about Github releases and the proper way to handle dependencies.
Allows users to delete and add resources without disruptive pop-ups
View dates on individual referrals
No more crowding the narrow state column with excessive text (full state names)
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.