Skip to content

Commit

Permalink
Dockerfile added and the readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
neszt committed Feb 27, 2021
1 parent b5d708d commit a512f7e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM debian:buster

MAINTAINER Neszt Tibor <[email protected]>

RUN \
apt-get update && apt-get -y upgrade && \
apt-get -y install nodejs npm git && \
git clone https://github.com/revolut-engineering/revolut-merchant-api-example-next-js.git /app && \
cd /app && \
npm install

CMD [ "sh", "-c", "cd /app && REVOLUT_API_KEY=$api_key npm run dev" ]
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ $ REVOLUT_API_KEY=XXXX npm run dev

Open web browser: http://localhost:3000

## Start with Docker

Create a Revolut Business sandbox account and api token as described in setup.

Build the Dockerfile:

```
$ docker build -t my-revolut-merchant-backend .
```

Run the docker:

```
$ docker run -it --rm -p 8000:3000 -e api_key=XXXX my-revolut-merchant-backend
```

Open web browser: http://localhost:8000

## Documentation

Read more in our official [developer portal](https://developer.revolut.com/docs/merchant-api/#getting-started).
Expand Down

0 comments on commit a512f7e

Please sign in to comment.