Skip to content

Instantly share code, notes, and snippets.

@Callbritton
Callbritton / crate_demo.md
Last active February 16, 2021 16:08
Crate Demo

Proposed Plan:

Break the demonstration into 5 3-4 minute sections

  • Demo code via text editor (updated code base pulled from Main), Postico, Postman, etc

Order:

  1. Sage
  2. Bruce
  3. Chris
  4. George
@Callbritton
Callbritton / rails_travis_heroku_integration.md
Last active January 7, 2021 13:00
"Guide" on integrating Travis CI with Heroku for a rails app

About:

While studying at Turing, many of my cohorts and I had been using a guide published by Felipe Luiz Soares hosted on Medium. Due to the Travis-CI transitioning from Travis-CI.org to Travis-CI.com, that guide has become a bit out of date.

Step 1:

  • Create a rails app and add it as a repository on GitHub (ex:) rails new my_rails_app -T -d postgresql --api
  • Install any optional gems (SimpleCov, Capybara, etc)
@Callbritton
Callbritton / rails_new_api.md
Created January 5, 2021 16:09
Step by step "guide" to create a new rails API app

Rails New API App Step by Step References: Building an API Lesson Building an API Exercise Ian Video Dione Video

Start a new rails API app:

Initial Setup:

@Callbritton
Callbritton / consultancy_2008.md
Last active January 1, 2021 21:45
Mod 3 winter break research

Consultancy Research

Carbonite/Carbon-Knight

Users input data to calculate carbon footprint, find carbon offset information.

  • CoolClimate API - https://api-central.berkeley.edu/api/11/interactive-docs
    • This API appears to have most of the functionality needed to build out the project!
  • Incorporate Facebook (even though they are evil)
    • Users could share thier carbon scores to increase a competition of sorts

Game Night

@Callbritton
Callbritton / GraphQL.md
Last active December 28, 2020 17:06
Mod 3 Winter Break Research

GraphQL

What is it?

  • GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data.
  • GraphQL is a specification, not a technology. It is a set of rules and concepts that any developer can utilize in their project.
  • In REST, the space of accessible data is described as a linear list of endpoints, and in GraphQL it’s a schema with relationships.
  • In GraphQL you don't use URLs to indentify what is available in the API. Instead, you use a GraphQL schema:
type Query {

API Jumpstart:

Consume an API:

Setup:

  • Ensure that faraday and figaro are added to gem file outside the testing block:
gem 'figaro'
gem 'faraday'
@Callbritton
Callbritton / viewing_party_dtr.md
Last active November 30, 2020 23:08
Viewing Party Paired Project DTR

Rails Step By Step “Guide”

Start a new rails project:

Reference: https://github.com/turingschool-examples/task_manager_rails

This will start a new Rails App with postgresql as database and skip the usage of Spring and Turbolinks (method used in task_manager):

rails new task_manager -T -d="postgresql" --skip-spring --skip-turbolinks

Project: Monster Shop Group

Group Member Names: Christopher Allbritton, James Belta, Garrett Gerdsen, Drew Williams

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):

Passing score for the project (https://github.com/turingschool-examples/monster_shop_2005 Complete User Stories 1-54 Satisfy the learning goals

Project: Adopt Don't Shop Paired

Group Member Names: Christopher Allbritton, ??

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):