Read the following detailed article (usage and explanations in the article are also updated as and when required)
A VueJS CRUD component which is customisable and extensible to suit more complex situations such as Nested CRUD, custom filters, use of GraphQL or REST to access various datastores. Vuetify is used for layout components but can be changed to alternatives such as ElementUI (by changing components from Vuetify to ElementUI)
- Able to do nested CRUD operations, e.g. selecting a post from a list of posts, and then selecting a comment from a list of comments of the selected post to edit
- (New can work with NUXT - https://github.com/ais-one/nuxt-vcx)
- (New Features) Edit inline
- (New Examples) Pagination, Use as component in a page
- Include handling of authentication tokens, and any other information
- Customise
- Table data format for each cell (e.g., currency to 3 decimal places)
- Search filters
- CRUD Form layout & validation
- CRUD operations (e.g. disallow delete)
- For CRUD operations, you can Use direct call (e.g. Firestore), or API (REST, GraphQL) to one or more types of datastore (MySQL, MongoDB, Redis, ElasticSearch, etc.)
- Export to CSV, File/Image Upload, i18n
- Possibly replace Vuetify with something else like ElementUI, Buefy, etc.
Because of its flexible nature, quite a number of things need to be coded to fit your needs.
However, the good part is that these parts need to be coded anyway and once you find your way around the design, you will be able to quickly create custom CRUD in many of your use cases
git clone https://github.com/ais-one/vue-crud-x.git
cd vue-crud-x/example
npm install
# delete package-lock.json if you face problems
touch cfg.json
vi cfg.json
{
"firebaseCfg": {
"apiKey": "",
"authDomain": "",
"databaseURL": "",
"projectId": "",
"storageBucket": "",
"messagingSenderId": ""
},
"recaptchaSiteKey": ""
}
npm run serve
cd [path-to]/vue-crud-x
npm run build
npm publish
npm pack
# A local npm package will be created (e.g. vue-crud-x-?.?.?.tgz file)
# If you want to install without saving to package.json, npm i --no-save vue-crud-x-?.?.?.tgz
Install it as in NPM package and import it npm i vue-crud-x
Just copy the VueCrudX.vue file into your project and include it as a component
- fix Date Range Issues... or check filters only on submit
- GraphQL using Prisma or Hasura
- add casl-vue, for casl authorization library
- Configurable theme
- Take note of the following github issues
- Fixed Table Header:
- Infinite Scroll: vuetifyjs/vuetify#3538
- No need vuelidate or vee-validate, use validation availble in Vuetify - see if it is possible to make common validation rules
- Look into abort/timeout for async operations without abort/timeout feature
None at the moment
See RELEASE.MD file