This project is a personal project used as much a learning project and as a integration test.
Node.js 18.6 or higher (you can download it here).
Read the instructions on how to create an application at the Mercado Pago Developer Panel in order to acquire your public key and access token. They will grant you access to Mercado Pago's public APIs.
git clone https://github.com/francineemilia/svelte-ecommerce-bricks
cd svelte-ecommerce-bricks
npm install
Create an .env file in the root folder. You can just rename the .env.example
to .env
Changes the PUBLIC_KEY
and SECRET_ACTK
to the public key and access token from your MercadoPago aplication
Run the following command to start the application:
npm run dev
On MercadoPago testing instructions you'll find credit cards that can be used along with this sample and a guide on how to create test users.