QuickSearch is a small web app for searching a relational database, conceived as a quickly deployable app to allow untrained staff to easily search a database.
It is written with Express, Pug and Vue.js.
- Install dependencies with
npm install
- Set up development database with
npx knex seed:run
- Run the app with
npm start
- Test it out at http://localhost:3000
The configuration file config.js
allows you to customise QuickSearch for your purposes.
tableName
- The view/table in the database to queryheaderField
- The column to display as a heading for each resultkeyField
- A unique column to identify the results, usuallyid
searchFields
- An array of the columns to searchdisplayFields
- An array offield
objects. Afield
object contains alabel
and acolumnName
.
This project is licensed under the MIT License - see the LICENSE.md file for details.