Git Product home page Git Product logo

jx-payments's Introduction

Manning LiveProject - CI/CD with JenkinsX

In order to start working with this project we would need:

  • Docker
  • docker-compose

You need to clone this repository onto your machine by executing:

git clone [email protected]:mmontalvo/jx_payments.git

or

git clone https://github.com/mmontalvo/jx_payments.git

After this, you go into jx_payments folder and run:

docker-compose up

It will start pulling the images needed, setting up the MySQL database installation and the packages from the Django applications.

Once the app and the database are running, we would need to run migrations to have the database tables in a work ready state. For it, we need to get into the application's Docker running instance.

Running docker ps we can spot the instance running our application (it would be something similar to the following line):

CONTAINER ID        IMAGE                     COMMAND                  CREATED              STATUS              PORTS                               NAMES
_container_id_        jx_payments_jx-payments   "gunicorn --bind :80…"   About a minute ago   Up About a minute   0.0.0.0:8080->8080/tcp              jx_payments_jx-payments_1

Now we need to start an interactive shell, and run the migrations with the following command:

# Access the container where we have our database running with:
docker exec -it _container_id_ bash

# Run migrations with:
python manage.py migrate

We can verify everything is running as expected by opening a browser and point to any: trading service: http://localhost:8080/

jx-payments's People

Contributors

dependabot[bot] avatar mmontalvo avatar pomodroizer avatar

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.