This project is a personal project used as much a learning project and as a integration test.
- Sveltkit:
- Svelt
- Typescript
- Tailwind
- Vite
- Node
- MercadoPago SDK (Node)
- MercadoPago SDK JS
-
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.
- Clone the project.
git clone https://github.com/francineemilia/svelte-ecommerce-bricks
- Go to the project's folder.
cd svelte-ecommerce-bricks
- Then install the dependencies.
npm install
-
Create an .env file in the root folder. You can just rename the
.env.example
to.env
-
Changes the
PUBLIC_KEY
andSECRET_ACTK
to the public key and access token from your MercadoPago aplication -
Run the following command to start the application:
npm run dev
- Copy the generated URL
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.