Git Product home page Git Product logo

backend-capstone's Introduction

Backend for Computers Capstone Project

Backend service created with Ruby On Rails. If you want to see the backend in action you can clone/download the frontend app

๐Ÿ‘ท๐Ÿป Built using

- Ruby
- Ribu On Rails    
- VSCode
- Ruby Mine
- GIT
- GitHub
- RSpec
- PostgreSQL 

๐ŸŒ Endpoints description

Computers endpoint

Endpoint Method Description Body params
/api/v1/computers GET Get all computers -
/api/v1/computers POST Create new computer hdd, processor, ram, brand, price, accessories, image
/api/v1/computers/:id DELETE Delete computer from database -
/api/v1/computers/:id GET Get computer by ID -

Favorites endpoint

Endpoint Method Description Body params
/api/v1/favorites POST Create new favorite user_id, computer_id
/api/v1/favorites/:id DELETE Delete favoritefrom database -

Users endpoint

Endpoint Method Description Body params
/api/v1/users POST Create new user username, email, password_diggest
/api/v1/users/login POST Login with username & email username, email

๐Ÿšฉ Getting Started

To get a local copy up and running follow these simple example steps. In order to use this app you need to download the frontend application from here

โœ… Prerequisites

๐Ÿ‘จ๐Ÿปโ€๐Ÿ”ง Setup

  • Open your terminal and move to the root of the project, using $ cd command.
  • Run $ bundle install to install all dependencies.
  • You must run $ rails db:create to create the database and $ rails db:migrate to migrate the tables and $ rails db:seed
  • After this now you can run the server with $ rails s

๐Ÿ”Œ Usage

โœ” Tests

You can run test using rspec

  • Create the database with bundle exec rake db:create RAILS_ENV=test
  • And do the proper migrations with bundle exec rake db:migrate RAILS_ENV=test
  • Finally run the test with bundle exec rspec

๐Ÿ“ Kanban Board

Screenshots

Front End

kanban-frontend

Back End

kanban-backend

The project was developed by 3 members (@Rocio01, @kensayo, @SunnySparks)

๐Ÿค Authors

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Kenny Ortega

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Sunny Diaz

๐Ÿ‘ฉโ€๐Ÿ’ป Rocio Martinez

๐Ÿค๐Ÿป Contributions and issues are welcome!

๐Ÿ“œ License

This project is MIT licensed.

backend-capstone's People

Contributors

rocio01 avatar kensayo avatar sunnysparks 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.