GithubHelp home page GithubHelp logo

mjkern / choretrackerapi_populator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from profh/choretrackerapi_populator

0.0 0.0 0.0 1 KB

Some help for populating the ChoreTracker API with sample data

Ruby 100.00%

choretrackerapi_populator's Introduction

ChoreTracker populate files

These are supplemental files to the ChoreTracker API labs in 67-272 to help you add a few records to the system so you can play with the API and see what gets returned. It is not essential that you do this to complete the lab, but for many students it may be helpful.

After you have built the initial API and inserted a record via the curl command as instructed in the lab (we want you to see the empty array first), you can populate the rest of the database with some sample values to make the rest of the lab more interesting. There are just four quick steps:

  1. Copy the contents of seeds.rb into the db/seeds.rb file in your project
  2. Drop the factories.rb file into the test/ directory of your project
  3. Add gem 'factory_bot_rails to your Gemfile and run the bundle command
  4. Run rails db:seed to add the records to your database

choretrackerapi_populator's People

Contributors

mjkern avatar profh avatar

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.