-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.md.backup
More file actions
61 lines (42 loc) · 1.84 KB
/
README.md.backup
File metadata and controls
61 lines (42 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Neighborly::Api
[](https://travis-ci.org/neighborly/neighborly-donate-api) [](https://codeclimate.com/github/neighborly/neighborly-donate-api)
## What
This is the implementation of [Neighbor.ly Donate](https://github.com/neighborly/neighborly-donate)'s API.
## How
Include this gem as dependency of your project, adding the following line in your `Gemfile`.
```ruby
# Gemfile
gem 'neighborly-api'
```
Neighborly::Api is a Rails Engine, integrating with your (Neighborly) Rails application with very little of effort. To turn the engine on, mount it in an appropriate route:
```ruby
# config/routes.rb
mount Neighborly::Api::Engine => '/api/', as: :neighborly_api
```
## Contributing
1. Fork it ( https://github.com/neighborly/neighborly-donate-api/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
### Running specs
We prize for our test suite and coverage, so it would be great if you could run the specs to ensure that your patch is not breaking the existing codebase.
When running specs for the first time, you'll need to download Neighborly's source code to be tested against your version of the gem. The following command will install the dummy app in `spec/dummy`.
```
$ git submodule init
$ git submodule update
```
And before you go, you need to initialize a database for this "dummy" app.
```
$ cd spec/dummy/
$ ./bin/bootstrap
$ cd ../../
$ cp spec/dummy/.env.example .env
$ rm -rf spec/dummy/spec
```
To run the specs just run:
```
$ bundle exec rspec
```
## License
Licensed under the [MIT license](LICENSE.txt).