-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from TrustlyInc/DEV
[Dev 191064] - new public backend example app for receiving webhooks and creating payments
- Loading branch information
Showing
44 changed files
with
16,385 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ACCESS_ID=<ACCESS_ID provided by Trustly> | ||
ACCESS_KEY=<ACCESS_KEY provided by Trustly> | ||
BASE_URL=<TRUSTLY API URL> (https://sandbox.trustly.one/api/v1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# compiled output | ||
/dist | ||
/node_modules | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
pnpm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# Tests | ||
/coverage | ||
/.nyc_output | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<p align="center"> | ||
Alpha Merchant App - Simple Backend | ||
</p> | ||
|
||
|
||
## Description | ||
|
||
Simple backend to demonstrate how to implement the endpoints to integrate with Trustly. | ||
|
||
## Requirements | ||
|
||
- node 16 or higher | ||
|
||
## Clone the app | ||
|
||
```bash | ||
# clone the repository | ||
$ git clone https://github.com/TrustlyInc/trustly-nestjs-example.git | ||
``` | ||
|
||
## Configuring Trustly API credentials | ||
In the `.development.env` file replace environment variables values: | ||
- ACCESS_ID | ||
- ACCESS_KEY | ||
- BASE_URL | ||
|
||
## Install dependencies | ||
```bash | ||
# install dependencies | ||
$ npm install | ||
``` | ||
|
||
## Running the app | ||
```bash | ||
# development | ||
$ npm run start:dev | ||
``` | ||
|
||
## Swagger | ||
``` | ||
http://localhost:8080/api | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>Trustly NestJS Example</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/nest-cli", | ||
"collection": "@nestjs/schematics", | ||
"sourceRoot": "src", | ||
"compilerOptions": { | ||
"deleteOutDir": true | ||
} | ||
} |
Oops, something went wrong.