Code Monkey home page Code Monkey logo

docker-mpplatforms's Introduction

Mercado Pago Open Source Platforms Simple Installation (WIP)

This is a repository that contains scripts to easily install open source e-commerce builders with mercadopago on a Docker environment. Supported platforms:

  • Opencart;
  • Prestashop;
  • Woocommerce;
  • Magento 1.x;
  • Magento 2.x;

For all platforms, change scripts/{platform}/configs file to setup the variables that will be used on your environment accordingly to the platform and versions that you want to install. Where platform is the platform that you want to install.

Platforms

Opencart

To install Opencart with Mercado Pago cart run:

./mercadopago install opencart

Open a browser and go to localhost. Follow the installation steps.

Continue on steps 1 and 2.

Step 3: 1st form:

Field Data
DB Driver MySQLi
Hostname db
Username opencartuser
Password opencartpass
Database opencartdb
Port 3306
Prefix oc_

2nd form:

Field Data
Username admin
Password admin
email [email protected]

You can change any of those data if you want. If you've changed scripts/configs use the same data that you used on mysql_user, mysql_password, mysql_database on the fields from the 1st form.

After finish the installation remove the install folder from your container. You can ./mercadopago wrapup opencart to do so.

Now you are ready to configure MercadoPago module. Just follow the Setup Mercado Pago session on developers guide for opencart

Prestashop

To install Prestashop with Mercado Pago cart run:

./mercadopago install prestashop

Open a browser and go to localhost. Follow the instructions on screen.

On System Configuration fill the fields according to the table

Field Data
Database server address db
Database name prestashopdb
Database login prestashopuser
Database password prestashoppass
Tables Prefix ps_

Notice that these credentials are configured on scripts/prestashop/configs, if you've changed these configs on the file, make sure to configure the same way on System Configuration.

After finishing the installation remove the install folder from your container. You can ./mercadopago wrapup prestashop to do so.

Now you are ready to configure MercadoPago module. Just follow the Setup Mercado Pago session on developers guide for opencart

Woocommerce

To install Woocommerce with Mercado Pago cart run:

./mercadopago install woocommerce

Open a browser and go to localhost. Follow the installation steps.

Now you are ready to configure MercadoPago module. Just follow the Setup Mercado Pago session on developers guide for opencart

Magento1

To install Magento with Mercado Pago cart run:

./mercadopago install magento1

Magento2

To install Magento with Mercado Pago cart run:

./mercadopago install magento2

List of commands

On this project root there is a file called mercadopago it is a "CLI" to several commands. All listed commands bellow has the format ./mercadopago <CMD> <ARGS>.

CMD ARGS Description
install <platform name> Installs the platform passed as parameter
init - Prepare docker files docker-compose-dev.yml, docker-compose.yml, docker-sync.yml adn Dockerfile according with configurations made on /scripts/configs
kill - Do the same as stop and remove stopped containers and clean up docker-sync
restart - Executes stop followed by start
shell <user> (optional) Access the apache container via bash inside /var/www/html folder.
start - Starts docker-sync and docker-compose containers without building Dockerfile
start_build - Starts docker-sync and docker-compose containers building Dockerfile
stop - Stops docker-sync and docker-compose containers
wrapup <platform name> After installing some platforms will need to wrap up the installation. This command do all the job needed after installing it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.