Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyabee committed Oct 2, 2017
1 parent cd321ff commit 95dc8c8
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,30 @@
## Installation

1. Add `cloud_vision` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:cloud_vision, "~> 1.0.0"}]
end
```
```elixir
def deps do
[{:cloud_vision, "~> 1.0.0"}]
end
```

2. Ensure `cloud_vision` is started before your application:

```elixir
def application do
[applications: [:cloud_vision]]
end
```
```elixir
def application do
[applications: [:cloud_vision]]
end
```

3. Configure credentials for [goth](https://github.com/peburrows/goth):

```elixir
config :goth, json: "PATH_TO_YOUR_CREDENTIALS" |> File.read!
````
```elixir
config :goth, json: "PATH_TO_YOUR_CREDENTIALS" |> File.read!
````

4. (Optional) Configure your Google Cloud Storage Bucket URI if you want to retrieve file from it:
```elixir
config :ex_cloud_vision, gcsUri: "YOUR_BUCKET_URI" # e.g. xxx.appspot.com
```
```elixir
config :ex_cloud_vision, gcsUri: "YOUR_BUCKET_URI" # e.g. xxx.appspot.com
```

## Usage

Expand Down

0 comments on commit 95dc8c8

Please sign in to comment.