Giter VIP home page Giter VIP logo

Comments (8)

markbates avatar markbates commented on August 22, 2024 2

See gobuffalo/suite#8 it’ll be merged tomorrow.

from pop.

markbates avatar markbates commented on August 22, 2024 1

I was thinking more along the lines of what Rails does with fixtures http://guides.rubyonrails.org/testing.html#the-low-down-on-fixtures

from pop.

markbates avatar markbates commented on August 22, 2024 1

I think you want the db:seed task. buffalo t db:seed. Look in grifts/db.go. Fill that with whatever you need, run it, populated db.

from pop.

markbates avatar markbates commented on August 22, 2024

Never mind, I thought this was about loading test data in buffalo. Ignore my previous comment. :)

from pop.

stanislas-m avatar stanislas-m commented on August 22, 2024

@markbates It can be used for that, but it aims to be more generic and not Buffalo-centric.

from pop.

hobbeshunter avatar hobbeshunter commented on August 22, 2024

So there is currently no way to load test data for testing or development? Well then I would like to make a feature request :D

Btw: great work

from pop.

hobbeshunter avatar hobbeshunter commented on August 22, 2024

Thanks a lot for this. It already looks great.

Something I also would like to have is a command like buffalo db populate scenario-dev. Lets say I have my app running for development with buffalo dev and then I want to populate my database with some examples.

I kind of like how symfony is doing their fixtures.

from pop.

stanislas-m avatar stanislas-m commented on August 22, 2024

Closing this one, will be implemented outside the repo as a plugin.

from pop.

Related Issues (20)

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.