Skip to content

Commit

Permalink
chore(docs): removing inexistent urls and adding elixir an toctree
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHe4rt committed Sep 18, 2023
1 parent 5bd794e commit 36af763
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion alternator/php/src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class App
public function start(): void
{
$alternatorClient = new DynamoDbClient([
'endpoint' => 'http://18.231.92.93:8000',
'endpoint' => 'http://localhost:8000',
'credentials' => ['key' => 'None', 'secret' => 'None'],
'region' => 'None'
]);
Expand Down
2 changes: 1 addition & 1 deletion alternator/python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from helpers import migrate;
from datetime import datetime

dynamodb = boto3.resource('dynamodb', endpoint_url='http://18.231.92.93:8000',
dynamodb = boto3.resource('dynamodb', endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')
migrate(dynamodb)

Expand Down
10 changes: 5 additions & 5 deletions docs/source/alternator/build-with-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can instantiate a new DynamoDB Client by using:
````python
import boto3

alternator = boto3.resource('dynamodb',endpoint_url='http://18.231.92.93:8000',
alternator = boto3.resource('dynamodb',endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')

````
Expand All @@ -29,7 +29,7 @@ Here's the DynamoDB queries used on this project so far:
````python
import boto3

alternator = boto3.resource('dynamodb',endpoint_url='http://18.231.92.93:8000',
alternator = boto3.resource('dynamodb',endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')

table = alternator.create_table(
Expand Down Expand Up @@ -62,7 +62,7 @@ table.put_item(Item={
### Adding Items

```python
alternator = boto3.resource('dynamodb',endpoint_url='http://18.231.92.93:8000',
alternator = boto3.resource('dynamodb',endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')

table = alternator.Table('songs')
Expand All @@ -81,7 +81,7 @@ table.put_item(Item={

```python

alternator = boto3.resource('dynamodb',endpoint_url='http://18.231.92.93:8000',
alternator = boto3.resource('dynamodb',endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')

table = alternator.Table('songs')
Expand All @@ -98,7 +98,7 @@ for rowIndex, song in enumSongList:

```python

alternator = boto3.resource('dynamodb',endpoint_url='http://18.231.92.93:8000',
alternator = boto3.resource('dynamodb',endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')

table = alternator.Table('songs')
Expand Down
2 changes: 1 addition & 1 deletion docs/source/alternator/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Examples:
# Python Example
import boto3

alternator_client = boto3.resource('dynamodb',endpoint_url='http://18.231.92.93:8000',
alternator_client = boto3.resource('dynamodb',endpoint_url='http://localhost:8000',
region_name='None', aws_access_key_id='None', aws_secret_access_key='None')
```

Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
Design and Data Model <design-and-data-model>
Build with JavaScript <build-with-javascript>
Build with Java <build-with-java>
Build with Elixir <build-with-elixir>
Build with Python <build-with-python>
Build with Ruby <build-with-ruby>
Build with Rust <build-with-rust>
Expand Down

0 comments on commit 36af763

Please sign in to comment.