Git Product home page Git Product logo

strapi-faker's Introduction

๐Ÿ‘‹ Hello world! Alex here.

  • ๐Ÿ‘จโ€๐Ÿ’ป A Software Engineer, turned Machine Learning Engineer
  • ๐Ÿ˜„ Building products that deliver value brings me joy

Currently

  • ๐Ÿ’ป Working as a freelancer on multiple projects, as Software Engineer / ML Engineer

Looking for

  • ๐Ÿ‘€ Always on the lookout for exciting challenges
  • ๐Ÿ“š Especially if they involve improving my skills or learning new ones

How to reach me

  • ๐Ÿ“ฉ Leave me a message on LinkedIn

Technologies I enjoy working with

Still reading?

Stats

GitHub Stats Most Used Languages

strapi-faker's People

Contributors

alexdevmotion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danielgraham123

strapi-faker's Issues

Request: Fill out the dashboard view in Strapi admin

In the Strapi admin dashboard, it would be super convenient if this plugins' view would be contain some basic features.

Currently, when visiting /admin/plugins/strapi-faker, there's just a blank screen.

As a starting point, maybe the structure like this:

Left sidebar has a list of models.

When clicking a model, right-side data view populates with standard records list (paged) of fake records for the model.

Toolbar at top of right-side view allows to control records, ie delete them all, generate X more, etc.

In the future: To be able to manually set the faker configuration, per-field, for each model.

Request: Generate fake data for field relationships

When I run strapi-faker, it doesn't seem to generate selections for relationship fields.

For example, given models: event, location, user

When I run faker, all the plain fields get fake data. However, relationships like many-users-in-one-event remain blank.

All that needs to be done is a random selection (of id) made of the relationship model; no faker universal data needed.

Request: Only run on specific models

It would be nice if this could be run on specific models (instead of all models)

For example:
strapi-faker/up/myModel
strapi-faker/down/myModel

Request: Explicitly and directly mark fake records

It would be nice if fake records were directly and explicitly marked, as opposed to tracking them in an external file, so that at any point of time you can discriminate between fake records and real records.

Why:
1 - To not have to worry about 'up' and 'down' faker states; less worry of corruption
2 - For a richer app development situation, where there's a mix of faker data AND human inputted data, and to be able to discriminate between either at any time
3 - To be able to dynamically toggle fake data on/off downstream (e.g. in the app front-end)

Perhaps a system as such:

For any model which would have fake data generated, a column is deemed to be exclusively used to just track faker state. Perhaps strapi-faker generates this column ("faker_state") ?

When fake records are generated, they get a specific flag in this column (like "1"), marking it as fake.

Now, management and access of fake records is easy as just filtering for the faker flag.

Yes, this changes model structure, but during app development, model structures are changing anyways. Anyone using a faker plugin is presumably pre-production.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.