Skip to content

agutierrezgit/apirobots

Repository files navigation

Create a new Generation of Robots with this API 👾

Description

This is a Rails JSON-API-only application capable of doing the following actions:

  • Create Robots. Each robot can have weapons and armors.
  • Update a robot's attributes, including (but not limited to) weapons and armors.
  • Search Robots according to their attributes, weapons and armors.
  • Destroy a robot

In this app I have used Devise for authentification and Pundit for authorization, following some resources from my bootcamp. However I have experienced problems with the registration/login responses as Devise doesn't support Rails --api applications out of the box, so I have realized this might not be the best solutions and I will try to use devise_token_auth in a new version of this API.

In order to guarantee the authentification of the user I have used Simple Token Authentification

Please check it out and I would be very happy to get your thoughts.

Here is the API running

I will be adding also some more features as automatic generation of serial numbers for each model and most important, some humor about robots :)

API documentation

Postman documentation available here

Built With

Gems installed

Prerequisites

What things you need to install the software and how to install them:

Installing

1. Clone the repository

git@github.com:agutierrezgit/apirobots.git

2. Build the project - See set up for Linux

docker-compose build 

3. Create the database

docker-compose run web rails db:create

4. Run the migrations

docker-compose run web rails db:migrate

5. Run the seed

docker-compose run web rails db:seed

6. Boot the App

docker-compose up

Todo

  • Create Robots. Each robot can have weapons and armors.
  • Update a robot's attributes, including (but not limited to) weapons and armors.
  • Search Robots according to their attributes, weapons and armors.
  • Destroy a robot.
  • Make API public.
  • Create a Readme.

About

API created with Ruby on Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages