Giter Club home page Giter Club logo

acuerdo's Introduction

Acuerdo

Acuerdo is a frontend for the viabtc_exchange_server and xchwallet projects.

It handles user registration, blockchain/fiat wallets and interfacing with the core exchange server (among other things).

Running locally

Clone the repo including submodules: git clone --recurse-submodules https://github.com/djpnewton/acuerdo.git

Requirements

  • ansible
  • vagrant
  • mysql command line client
  • python
  • dotnet core

Create backend servers

  • Go to the ansible directory cd ansible
  • Use vagrant to provision a local server for the exchange backend and blockchain clients vagrant up
  • Use ansible to initialise the exchange backend ./ansible_deploy_viaxch.sh local
  • Use ansible to initialse the blockchain clients ./ansible_deploy_blockchains.sh local

Create Acuerdo database

  • Create database mysql --host=10.50.1.100 -uviaxch -pnot_production --execute="create database viafront;"
  • Init schema using Entity Framework Core dotnet ef database update

Create the wallet databases

  • python init_wallet_dbs.py appsettings.json xchwallet/xchwallet/ .

Init roles

  • dotnet run -- console initroles

Run Acuerdo

  • dotnet run

Mail server

A mail server is created, but it will probably have trouble getting its mail delivered.

To use another authorised mail relay (like gmail) change the 'EmailSender' settings in 'appsettings.json':

    "EmailSender": {
        "From": "[email protected]",
        "SmtpHost": "smtp.gmail.com",
        "SmtpUser": "myusername",
        "SmtpPass": "mypassword",
        "SmtpPort": 587,
        "SmtpSsl":  true
    },

Extra

If you dont want to debug the front end on your host pc but want to run it in your local virtual machine you can do that as well (./ansible_deploy.sh local)

You can then access the site at http://10.50.1.100 and you will not have to manually create the database, wallet dbs, roles etc (but changes to 'appsettings.json' will not be replicated into the virtual machine unless comitted to git so your emails probably wont work by default).

acuerdo's People

Contributors

djpnewton avatar eoliveros 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.