Giter Site home page Giter Site logo

baka's Introduction

Bakalarka

How to run

Production

  1. Copy .env.example to .env
  2. Fill in the .env
  • BANK_TOKEN - Fiobanka token for API
  • BANK_IBAN - IBAN of the receiving account
  • BANK_ACCOUNT - Account number eg. 1234567890/1234
  • EMAIL_HOST=smtp.seznam.cz - outgoing mail server
  • EMAIL_PORT=465 - port of the outgoing mail server
  • EMAIL_HOST_USER
  • EMAIL_HOST_PASSWORD
  • EMAIL_UNSUBSCRIBE_TOKEN - random string, is used for hashing
  • USER_ACTIVATION_TOKEN - random string, is used for hashing
  • DEPLOYED_URL=http://baka.docker - URL of the deployed app
  1. Make sure port 80 is not used
  2. docker-compose build --no-cache
  3. docker-compose up -d
  4. Check localhost

Create a superuser

  1. docker ps - find the container hash of the backend
  2. docker exec -it <container_hash> bash
  3. python manage.py createsuperuser

Bank periodic task

In order to get the bank transactions, we need to set up a celery periodic task.

  1. Go to /admin and log in as root
  2. Go to Periodic tasks
  3. Add a new periodic task for orders.tasks.get_bank_statement with an interval of 10 seconds

baka's People

Contributors

astonlele avatar

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.