https://github.com/thiagohrcosta/soccer-api
https://github.com/thiagohrcosta/soccer-api
postgresql postman pundit rails rspec ruby
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thiagohrcosta/soccer-api
- Owner: thiagohrcosta
- Created: 2021-05-16T01:03:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-21T02:12:25.000Z (about 5 years ago)
- Last Synced: 2025-02-03T17:59:40.323Z (over 1 year ago)
- Topics: postgresql, postman, pundit, rails, rspec, ruby
- Language: Ruby
- Homepage:
- Size: 204 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Soccer API

## Technologies used in this project

### Gems used:
- Pundit;
- Simple_token_authentication;
## API Request

## Tests
To implement tests on this project was used Rspec gem.

## How to run this project?
This project was building using the **backend as API**, because of that after download, you need to open the main folder and run `rails s` to start the backend API. After that, you can use Postman to do get and request.
- The backend will be running on `localhost:3000`
- The API is running on path `localhost:3000/api/v1/players`
## Development routine
**May 15**
- Project created in Rails;
- Model Player created;
- Pundit added;
- Folder API created;
- API base controller created;
- API routes created;
- Player controller with policy_scope added;
- Views (JSON) created;
- Player seeds created;
**May 17**
- Pundity policy created;
- Second route /players/:id created;
- Migration to add tolken to user created;
- Update policies
**May 18**
- Create route added;
- Changes policy to allow user to POST;
- Fix typo on seed "Borussia Dortmund";
**May 20**
- Tests added with Rspec;