Skip to content

ycabrera90/BuyMeACoffee

Repository files navigation

EIP Studios

Buy me a coffee

This in a small endpoint to interact with DLocal services for make online payments.

Built with

  • EJS - Template engine
  • Node.Js - JavaScript runtime environment
  • Express - Node.js Framework!
  • NPM - Dependencies handler

Frontend Side

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.

Clone and run app

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.

Pre-requirements

For run this project you must have installed globally the following packages in your local machine

Clone and prepare.

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.

Serve the app.

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.

Authors

License

This project is public and only for academic purposes.

Read More 🎁

  • You can find the documentation of the APIS in the following link.

⬆ Back to top


[email protected]