Coder Social home page Coder Social logo

brianwangila / dial-a-mechanic_sinatra-backend Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 41 KB

This is a short Dial A Mechanic backend project written with Sinatra Ruby that lets Users create a mechanic account and rate mechanics. It has two models (Mechanics and Reviews) and employs all the CRUD functionalities.

Home Page: https://sea-lion-app-xkrg8.ondigitalocean.app/

Ruby 99.53% Procfile 0.47%
ruby sinatra sinatra-applications sinatra-framework procfile

dial-a-mechanic_sinatra-backend's Introduction

DIAL A MECHANIC (DAM) BACKEND

By Brian Wangila

Description

DAM is a single-page website that links motorist with car problems to their desired mechanics. The mechanics can be found all over the country, and in major cities and ready to help a stranded motorist get back on their journey. The site also offers mechanics an avenue to get clients and enhance their skills. The mechanics being situated all over the country make it easier for a motorist to get help as soon as they dial a number and explain their situation. This is a backed stack server for DAM with SINATRA Ruby. Follow the below instructions to clone or contribute to this backend server.

Features

  • Two models - Mechanics and Reviews
  • Has a one-to-many relationship
  • Uses ActiveRecord to handle the db
  • Has API routes in Sinatra that handle all the CRUD actions for the Active Record models.

Getting Started with DIAL A MECHANIC (with SINATRA)

API Live Link

API Live Link

  • Click Here to access the live API.

Dial A Mechanic API Repo

Description

Let us get a deep dive into how to configure routing in SINATRA Ruby.

Getting Started

In order for you to use the content on this repo, ensure you have the following:

  • A computer that runs on either of the following; (Windows 7+, Linux, Mac OS)
  • nodejs 9.0+
  • RVM installed
  • Some bit of patience for your own sanity.

Installation

To use this repo on your machine requires some simple steps

Alternative One

  • Open a terminal / command line interface on your computer

  • Clone the repo by using the following:

      git clone [email protected]:BrianWangila/Dial-A-Mechanic_SINATRA-backend.git 
    
  • Be patient as it creates a copy on your local machine for you.

  • Change directory to the repo folder:

      cd DAM-Sinatra-server
    
  • (Optional) Open it in Visual Studio Code

      code .
    
  • (Alternate Option) Open it in any editor of your choice.

  • Hurray! You are one step closer to being as intelligent as Einstein.

Alternative Two

  • On the top right corner of this page there is a button labelled Fork.

  • Click on that button to fork the repo to your own account.

  • Take on the process in Alternative One above.

  • Remember to replace your username when cloning.

      git clone (HTTPS) https://github.com/BrianWangila/Dial-A-Mechanic_SINATRA-backend.git
    
      OR
    
      git clone (SHH) [email protected]:BrianWangila/Dial-A-Mechanic_SINATRA-backend.git 
    

Running the application

Running the application is very straight forward. You can use the following steps to run the app.

  • Install required dependencies from rvm

    bundle install
    
  • Run the application to start the backed server

    bundle exec rake server    
    
      OR
    
    rake server
    

Authors

This project was created and contributed to by:

License

The project is licensed under Apache 2.0.

The Apache 2.0 [2022] [Brian Wangila] 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, sublicense, 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 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 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.

dial-a-mechanic_sinatra-backend's People

Contributors

brianwangila avatar

Stargazers

 avatar

Watchers

 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.