Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cezbatistao/archref


https://github.com/cezbatistao/archref

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Sample Architecture Reference

__NEW VERSION__: *[archref-checkout](https://github.com/cezbatistao/archref-checkout)*

### Code template

We are using [Google Java Style](https://google.github.io/styleguide/javaguide.html)
- [*IntelliJ plugin*](https://plugins.jetbrains.com/plugin/8527-google-java-format)
- [Source code](https://github.com/google/google-java-format)

### IntelliJ plugin

- [*IntelliJ plugin*](https://plugins.jetbrains.com/plugin/8527-google-java-format)
- [Lombok](https://plugins.jetbrains.com/plugin/6317-lombok-plugin)
- [Spock Framework](https://plugins.jetbrains.com/plugin/7114-spock-framework-enhancements)
- [Gherkin](https://plugins.jetbrains.com/plugin/7211-gherkin)
- [Cucumber](https://plugins.jetbrains.com/plugin/7212-cucumber-for-java)

### Start application with spring cloud config
```
mvn spring-boot:run \
-Dspring.profiles.active=dev
```

### Run Gatling test
```
mvn clean package -DskipTests gatling:execute
```

### Import data for DynamoDB

- Setup and configure [AWS CLI](http://docs.aws.amazon.com/cli/latest/userguide/installing.html)

```
- Use the following command in the corresponding directory of the JSON files
$ aws dynamodb list-tables --endpoint-url http://localhost:8000 --region us-east-1
$ aws dynamodb batch-write-item --request-items file://sample-app-product.json --endpoint-url http://localhost:8000 --region us-east-1
$ aws dynamodb batch-write-item --request-items file://sample-app-stock.json --endpoint-url http://localhost:8000 --region us-east-1
- JSONs directory //dependencies/DynamoDB/
- How to write more than 25 items/rows into DynamoDB table?
AWS has a limitation for data import, accepting only 25 put Requests per file. So you will need to create a script to split the data for writing.
```