Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# package directories
node_modules
jspm_packages

# Serverless directories
.serverless

# Webpack directories
.webpack
69 changes: 67 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,67 @@
# hiring-tests
This repo is designated to our hiring tests.
- Aldebaran N. Souza
- email: [email protected]

# Init project
- After to do the clone of project, you must to execute the following command:
```
npm install
```

## Starting application offline
- You can start the application in offline mode executing the command below
```
npm run offline
```

## Deploy the lambda
- Before you to do the deploy configure the aws credentials.

```
[dev]
aws_access_key_id=XXXXXXXXXXXX
aws_secret_access_key=YYYYYYYYYYYYYYYY
```
- [dev] -->> it's required because the command that's mapping in the package.json has this profile, if you have another profile mapped, update the package.json

- After that you can execute the command
```
npm run deployDev
```

## Call service
- After deploy or startin aplication in offline mode, copying the URL and execute the following request.

- The service will go to return an array with the numnber that there are in both arrays.

- POST - [URL]

REQUEST
```
{
"firstArray": [
1,
3,
12
],
"secondArray": [
16,
6,
91,
1,
4,
3,
123,
1,
1,
3
]
}
```

RESPONSE
```
[
1,
3
]
```
Loading