MORINGA SCHOOL Phase 4 Project

#####Week Two Code Challenge: Superheroes#####

Screenshot

image

Table of Content

Description

This project for Implementation of a 'mini' Rails application that implements associations of an an API for tracking heroes and their superpowers

Features

As a user of the application,you will be able to :

  1. Create a Rails API backend.
  2. Have at least three resources (three DB tables).

Requirements

For this project, you must:

  • Use Active Record to interact with a database.
  • Have at least two models with a one-to-many relationship.
  • At a minimum, set up the following API routes in Sinatra:
    • create and read actions for both models
    • full CRUD capability for one of the models
  • Build a separate React frontend application that interacts with the API to perform CRUD actions.
  • Use good OO design patterns. You should have separate classes for each of your models, and create instance and class methods as necessary.

Installation Process

Backend Setup

This repository has all the starter code needed to get a Sinatra backend up and running. Fork and clone this repository to get started. Then, run bundle install to install the gems.

Important: Be sure you fork a copy of the repo into your GitHub account before cloning it. You can do this by using the link above or by clicking the "Octocat" button at the top of this page, then clicking "Fork" in the upper right corner of the repo page.

The app/controllers/application_controller.rb file has an example GET route handler. Replace this route with routes for your project.

You can start your server with:

$ rails s

This will run your server on port http://localhost:3001.

Technology and Tools Used

Resources

MIT License

Copyright (c) [2023] [Ruperth Nyagesoa]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANT ABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Authors Info

LinkedIn - Ruperth Nyagesoa

ENJOY