Skip to content

Commit

Permalink
Releasing Laravel 55 (#48)
Browse files Browse the repository at this point in the history
* 🎨 Add enum type for user status [skip ci]

* ⬆️ 💪 Moving core to L5.5 with new features

* 🐎 🎨 Separated some routes and logic

* 💚 Fix: Add default user status to inactive

* 💚 ⬆️ Update phpunit to 6.4

* 💪 Update travis config and scrutinizer coverage

* 💚 Limit 20 chars for username on seed

* Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* 💚 Update codecov and travis [skip ci]

* Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* 📝 remove codecov flas [skip ci]

* 💪 Add API resource instead of json response

* 💚 Add blood_type_id in Authenticate::register method

* 💚 ✅ Fix codecov report on travis

* Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Scrutinizer Auto-Fixes (#46)

* ⬆️ Update laravel and other deps [skip ci]

* ⬆️ 💪 Add Password

* Add contributors list and remove assets files [skip ci]

* 💪 Add avatar field in UserResource

* 📝 fix badge links and contributors counter [skip ci]

* 💚 Add codeclimate configuration [skip ci]

* 💪 Preparing to add blood bank module [ski ci]

* 💪 Add User country code and default avatar

* 💚 Fix: Controller class not found

* 💪 ⬆️ fix #38: Finish L5.5 Upgrade

* 💚 ⬇️ revert mockery version to 0.9

* 💪 Add github templates and adjust some functions

* 📝 Add contributors list [skip ci]

* 💚 fix: syntax error in Campaign resource

* 💚 fix: add => simbol in Campaign resource
  • Loading branch information
JoseCage authored Nov 4, 2017
1 parent 423d6bc commit f5a7033
Show file tree
Hide file tree
Showing 87 changed files with 3,148 additions and 8,845 deletions.
46 changes: 46 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"projectName": "doesangue-core",
"projectOwner": "doesangueorg",
"files": [
"CONTRIBUTORS.md",
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "JoseCage",
"name": "José Cage ",
"avatar_url": "https://avatars2.githubusercontent.com/u/4200487?v=4",
"profile": "https://josecage.github.io",
"contributions": [
"code",
"doc",
"ideas",
"review",
"test"
]
},
{
"login": "vinicius73",
"name": "Vinicius Reis",
"avatar_url": "https://avatars0.githubusercontent.com/u/1561347?v=4",
"profile": "http://luizvinicius.com.br/",
"contributions": [
"doc",
"example",
"tool"
]
},
{
"login": "pablolovera",
"name": "Pablo Lovera",
"avatar_url": "https://avatars0.githubusercontent.com/u/3923722?v=4",
"profile": "https://github.com/pablolovera",
"contributions": [
"code",
"example"
]
}
]
}
14 changes: 14 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
engines:
phpcodescniffer:
enabled: true
config:
standards: "PSR2"
ignore_warnings: true
ratings:
paths:
- "**.php"
exclude_paths:
- config/
- bootstrap/
- tests/
14 changes: 8 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
APP_NAME=DoeSangue
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=33060
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=doesangue
DB_USERNAME=doesangue
DB_PASSWORD=doesangue

BROADCAST_DRIVER=log
CACHE_DRIVER=redis
SESSION_DRIVER=redis
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync

REDIS_HOST=cache
Expand All @@ -28,5 +30,5 @@ MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* Core Version: 1.0.
* PHP Version: 7.
* Database Driver & Version:

- [ ] I have read the CONTRIBUTING document.
- [ ] This isn't a duplicate issue.

## Description:
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Types of changes

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] I have read the CONTRIBUTING document.
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
66 changes: 66 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
filter:
paths:
- 'app/*'
excluded_paths:
- 'resources/views/*'
- - 'resources/assets/*'
- 'config/*'
- 'tests/*'
checks:
php:
properties_in_camelcaps: true
function_in_camel_caps: true
encourage_single_quotes: true
phpunit_assertions: true
no_long_variable_names:
maximum: '20'
fix_use_statements:
remove_unused: true
preserve_multiple: true
preserve_blanklines: true
order_alphabetically: false
unused_variables: true

# phpunit_assertions: true
function_in_camel_caps: true
encourage_single_quotes: true
# javascript: true

coding_style:
php:
indentation:
general:
size: 2
spaces:
within:
brackets: true


build:
environment:
php:
version: 7.1.*

mysql: 5.7

variables:
APP_KEY: base64:D6N/Z/7E0B1M3l1GumT+Kp+JT7E4bzbeMRuxzV3CP1s=
DB_DATABASE: doesangue
DB_USERNAME: root
DB_CONNECTION: mysql
APP_ENV: testing

dependencies:
before:
- mysql -uroot -e 'CREATE DATABASE doesangue'

tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=build/logs/clover.xml'
coverage:
file: 'build/logs/clover.xml'
format: 'clover'
# before:
# - command: php artisan migrate --env=testing --no-interaction
# - command: php artisan db:seed --env=testing --no-interaction
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
language: php
php:
# - 5.6
- 7.0
# - 7.0
- 7.1
- nightly

Expand Down
73 changes: 73 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at info@doesangue.me. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org
26 changes: 24 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Contributing to doesangue.me

**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)

:cake: First off, thanks for taking you precious time to contribute. :+1:
The following is a set of guidelines for Contributing to **Doe Sangue.me** and it's projects/apps, which are in the [Doe Sangue](https://github.com/doesangueorg) on Github. These are just guidelines, not rules. Use your best judgement, and feel free to propose changes to this document in a **Pull Request**.

## Table of contents
[What to know before start?](#getting-started)
* [How?](#how)
* [Pull Requests](#pull-requests)
[Styleguide](#styleguide)
* [Styleguide](#styleguide)
* [Commits](#git-commit-messages)
* [Contributors list](#contributors)



Expand Down Expand Up @@ -60,7 +63,7 @@ Finally, go to Github and make a [Pull Request](https://help.github.com/articles
* Use the [PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). The easiest way to apply the conventions is to install the [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).

* **Add tests**! Your pull request won't be accepted if it doesn't have tests (or if it doesn't passes).
* **Document any change in behavior**. Make sure the **README.md** and any other relevant documentation are kept up-to-date.
* **Document any change in behavior**. Make sure the **README.md**, **CONTRIBUTORS.md** and any other relevant documentation are kept up-to-date.
* Don't worry about updating CHANGELOG.md. The package administrator will handle updating those when new releases are created.

### Styleguide
Expand Down Expand Up @@ -91,6 +94,25 @@ Finally, go to Github and make a [Pull Request](https://help.github.com/articles
:arrow_down: |``:arrow_down:``| when downgrading dependencies
:shirt: |``:shirt:``| when removing linter warnings

### Contributors
After you have created/added your features, changes don't forget to add yourself to our **contributors list** following the next steps:

* Install **all-contributors** dependency
```bash
npm install
```

* Run the `add` command with your name and category ([list of categories](https://github.com/kentcdodds/all-contributors#emoji-key))

```bash
npm run add YOURNAME category1 category2
```
Or run only the ``npm run add`` without arguments and will be open and interactive prompt

* Then update the list with you name
```bash
npm run generate
```

### TO-DO
* Add the styleguide.
Expand Down
13 changes: 13 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

## Contributors
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
| [<img src="https://avatars2.githubusercontent.com/u/4200487?v=4" width="100px;"/><br /><sub>José Cage </sub>](https://josecage.github.io)<br />[💻](https://github.com/doesangueorg/doesangue-core/commits?author=JoseCage "Code") [📖](https://github.com/doesangueorg/doesangue-core/commits?author=JoseCage "Documentation") [🤔](#ideas-JoseCage "Ideas, Planning, & Feedback") [👀](#review-JoseCage "Reviewed Pull Requests") [⚠️](https://github.com/doesangueorg/doesangue-core/commits?author=JoseCage "Tests") | [<img src="https://avatars0.githubusercontent.com/u/1561347?v=4" width="100px;"/><br /><sub>Vinicius Reis</sub>](http://luizvinicius.com.br/)<br />[📖](https://github.com/doesangueorg/doesangue-core/commits?author=vinicius73 "Documentation") [💡](#example-vinicius73 "Examples") [🔧](#tool-vinicius73 "Tools") | [<img src="https://avatars0.githubusercontent.com/u/3923722?v=4" width="100px;"/><br /><sub>Pablo Lovera</sub>](https://github.com/pablolovera)<br />[💻](https://github.com/doesangueorg/doesangue-core/commits?author=pablolovera "Code") [💡](#example-pablolovera "Examples") |
| :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->


This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
32 changes: 11 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[![Packagist](https://img.shields.io/packagist/v/doesangueorg/core.svg)](https://packagist.org/packages/doesangueorg/core)
[![Build Status](https://travis-ci.org/doesangueorg/doesangue-core.svg?branch=development)](https://travis-ci.org/doesangueorg/doesangue-core)
[![codecov](https://codecov.io/gh/doesangueorg/doesangue-core/branch/development/graph/badge.svg)](https://codecov.io/gh/doesangueorg/doesangue-core)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/badges/quality-score.png?b=development)](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/?branch=development)
[![Build Status](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/badges/build.png?b=development)](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/build-status/development)
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)
[![Build Status](https://travis-ci.org/doesangueorg/doesangue-core.svg?branch=master)](https://travis-ci.org/doesangueorg/doesangue-core)
[![codecov](https://codecov.io/gh/doesangueorg/doesangue-core/branch/master/graph/badge.svg)](https://codecov.io/gh/doesangueorg/doesangue-core)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/badges/build.png?b=master)](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/build-status/master)
[![Code Coverage](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/doesangueorg/doesangue-core/?branch=master)


#### Topics.
Expand All @@ -11,13 +13,10 @@
* [Instalation](#instalation)
* [Development](#development)
* [Contributing](#contributing)

![Mente Digital HQ](public/img/logo.jpg)
*Core maintained by Mente Digital Inc and awesome opensource contributors.*

* [Contributors](#contributors)

## What?
doesangue.me is a free (and opensource) platform that connects people interesting in blood donation.
[doesangue.me](https://doesangue.me) is a free (and opensource and free) platform that connects people interesting in blood donation.

## Why?

Expand All @@ -28,16 +27,6 @@ If you want to install locally or deploy to your server/infra please follow the

## Development

### assets

```shell
yarn # install node/js/css dependencies
```
or
```shell
npm install # install node/js/css dependencies
```

### Docker

- Docker 1.12+
Expand Down Expand Up @@ -83,5 +72,6 @@ docker-compose down # stop and kill the service
### Contributing
To contribute to this repo, please check the documentation/guide at [Contributing](CONTRIBUTING.md)

-----------------
If you prefer to read the portuguese version please check [README PT](README_PT.md)
### Contributors
We consider and respect everybody that contribute to our project.
Check the complete list of contributors in [CONTRIBUTORS](CONTRIBUTORS.md) doc.
Loading

0 comments on commit f5a7033

Please sign in to comment.