Microservice template
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# flutterwave-transfer-micro
|
||||
A microservice to handle flitterware payment services
|
||||
|
||||
# Installation
|
||||
* `git clone` this repository
|
||||
* `cd` into the repository
|
||||
* Build the docker image by `docker build -t flutterwave-transfer-micro .`
|
||||
|
||||
# Run
|
||||
* Set environment variables like `MONGO_URL` and `RABBITMQ_URL`. Full list in the wiki.
|
||||
* `docker run -p <BINDING> -e PORT=<app_port> -e POSTGRE_URL=<postgre_url> -i -t flutterwave-transfer-micro`
|
||||
|
||||
## Example configurations
|
||||
* binding: 127.0.0.1:3000:3000/tcp
|
||||
* app_port: 3000
|
||||
* postgre_url: postgresql://wrenchboard:wrenchboard@10.10.10.23:5432/wrenchboard
|
||||
|
||||
## Example command
|
||||
|
||||
docker run -p 127.0.0.1:3000:3000/tcp -e PORT=3000 -e POSTGRE_URL='postgresql://wrenchboard:wrenchboard@10.10.10.23:5432/wrenchboard' -i -t flutterwave-transfer-micro
|
||||
|
||||
# Test
|
||||
`npm test`
|
||||
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user