Cambalab / vue-admin

An open source frontend Framework for building admin applications running in the browser on top of REST, using ES6 and Vue.js
GNU General Public License v3.0
132 stars 24 forks source link

Replace server magazine services specific data generators with fake-data-generator #160

Open sgobotta opened 4 years ago

sgobotta commented 4 years ago

In the utils server we are using too many custom functions for the magazines fake data. We could replace that using the fake-data-generator as a dev-dependency.

Current models: please respect the current type of each property

magazine: {
  id: Number, // faker random number
  name: String, // faker random words
  articles: Array, // Please delete this one
  issue: String, // faker random numbers with a '#' prefix
  publisher: String // faker random words
}

Checkpoints:

glmaljkovich commented 4 years ago

Dibs

glmaljkovich commented 4 years ago

I think to add the issue number using fake-data-generator we first need to add a prepend field type to that library