Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile added #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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