Coder Social home page Coder Social logo

django-bank's Introduction

django-bank

This project demonstrates simple solution based on online banking theme. Application provides secure form to manage operations over and between user's credit cards. To get a transaction page (detail view) need to click by card. Includes Redis storage for storing in memory list of cards. Also included Adminer (docker container) for manage database. Available by http://app.local:8080/adminer

Please visit https://bank.alexdevel.pro (production version)

Test user:

username: [email protected]

password: djangodjango

Test user credit card:

Card number 9027578398661306

Pincode 1366

alt text

In order to start this project (after cloning) need to follow next steps:

  1. To ensure HTTPS connections need a generate self-signed certificate:

    cd django-bank/docker/openssl
    mkdir certs
    
    openssl genrsa -des3 -out certs/rootCA.key 2048
    openssl req -x509 -new -nodes -key certs/rootCA.key -sha256 -days 365 -out certs/rootCA.pem
    openssl req -new -sha256 -nodes -out certs/server.csr -newkey rsa:2048 -keyout certs/server.key -config <( cat server.csr.cnf )
    openssl x509 -req -in certs/server.csr -CA certs/rootCA.pem -CAkey certs/rootCA.key -CAcreateserial -out certs/server.crt -days 500 -sha256 -extfile v3.ext
    

    Then import rootCA.pem to browser through Settings -> Manage Certficates -> Authorities tabs

  2. Build and run docker containers:

    docker-compose build
    docker-compose up -d
    docker-compose ps
    

    last command will show status of running containers.

  3. Add services names to /etc/hosts

    # VirtualHosts
    127.0.0.1       app.local postgres redis
    
  4. Now install and js libraries:

    cd django/project/staticfiles
    npm install
    
  5. Execute necessary Django commands:

    cd django
    python3 ./manage.py makemigrations --settings=project.local
    python3 ./manage.py migrate --settings=project.local
    python3 ./manage.py collectstatic
    
  6. Run tests for banking application:

    python3 ./manage.py test banking
    

django-bank's People

Watchers

 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.