This in a small endpoint to interact with DLocal services for make online payments.
- EJS - Template engine
- Node.Js - JavaScript runtime environment
- Express - Node.js Framework!
- NPM - Dependencies handler
Te frontend side of this project is rendered in the server side using the template engine EJS. Yo can see the final deployment in the following link.
These instructions will allow you to obtain a copy of the project on your local machine for development and test purposes. Look the deployment so you can see the final result.
For run this project you must have installed globally the following packages in your local machine
For clone and serve the project you need open a terminal, go to the folder which you want to work and put the follows commands
git clone https://github.com/ycabrera90/BuyMeACoffee.git
cd BuyMeACoffee
npm install
After that you have to create a file called nodemon.json with the follow structure:
{
"env": {
"DLOCAL_API_KEY": "<your DLocal api key>",
"DLOCAL_API_SECRET": "<your DLocal api secret>",
}
}
You can get the DLocal api key and DLocal api secret in you account of DLocal Go.
For serve the app you need to run the following command:
npm run dev
Then you can open your browser and go to the following link.
- Yosniel Cabrera - React Developer
This project is public and only for academic purposes.
- You can find the documentation of the APIS in the following link.