Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naomiyocum/op_crews
My first project using Ruby on Rails! An app that allows users to CRUD One Piece Crews and Members.
https://github.com/naomiyocum/op_crews
rails rspec-testing ruby
Last synced: 25 days ago
JSON representation
My first project using Ruby on Rails! An app that allows users to CRUD One Piece Crews and Members.
- Host: GitHub
- URL: https://github.com/naomiyocum/op_crews
- Owner: naomiyocum
- Created: 2022-10-11T01:43:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T18:19:03.000Z (about 2 years ago)
- Last Synced: 2024-10-21T21:39:35.177Z (2 months ago)
- Topics: rails, rspec-testing, ruby
- Language: Ruby
- Homepage:
- Size: 1.93 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Relational Rails - One Piece Crews!
![GitHub language count](https://img.shields.io/github/languages/count/naomiyocum/op_crews)
![GitHub top language](https://img.shields.io/github/languages/top/naomiyocum/op_crews?color=yellow)![one-piece](https://user-images.githubusercontent.com/102825498/196816536-5da9d3a7-aa27-47c0-bfbc-6e97f017dfec.jpeg)
## Table of contents
* [General Info](#general-info)
* [Learning Goals](#learning-goals)
* [Technologies](#technologies)
* [Schema Design](#schema-design)
* [Usage](#usage)## General Info
This is a solo project that was assigned to us during week 1 of Mod 2. For our first project utilizing Ruby on Rails, we were to create a one-to-many relationship with our data and create web pages that allow users to CRUD resources.## Learning Goals
* Write migrations to create tables with columns of varying data types and foreign keys.
* Create instance and class methods on a Rails model that use ActiveRecord methods and helpers.
* Write model and feature tests that fully cover data logic and user behavior.## Technologies
Project is created with:
* Rails 5.2
* Ruby 2.7
* Rspec
* Pry
* SimpleCov
* VSCode
* Git## Schema Design
Below is my design for the one-to-many relationship we were to create for this project.
Influenced by One Piece (great anime btw) - a crew has many characters and a character belongs to a crew.![screen_shot_2022-10-19_at_12 09 16_pm](https://user-images.githubusercontent.com/102825498/196771136-2f9e938b-acc6-4d7f-aa30-2a74d478873b.png)
## Usage
First, clone this repo onto your local machine by running `git clone` with the copied URL.
Then, run the following in your Terminal:```
cd op_crews
bundle install
rails db:{drop,create,migrate,seed}
rails s
```
Lastly, head to your web browser and type `localhost:3000`.Sweet, now you're on my main page! There are already some crews and members created for you.
Feel free to add more, edit the existing ones, or even delete some (who cares about the Blackbeard Pirates, right?).