Skip to content

FindyFi/findy-front

Repository files navigation

FIndy front-end

Front end for Findynet customers

Prerequisite

How to run locally

Clone repository

git clone https://github.com/FindyFi/findy-front.git
cd findy-front

Update pool_transactions_genesis based on which ledger you want to connect

Setup a standard local PostgreSQL with database findytestfrontdb with user postgres and no DB password, in case you want to connect to an external db you can set DB_HOST, DB_NAME, DB_USER and DB_PASSWORD in .env file.

Add a table users with columns email and password. Also add a record in which password is hashed using SHA256. You can use the provided script below.

-- Create 'users' table if it doesn't exist
CREATE TABLE IF NOT EXISTS users (
    email VARCHAR(255),
    password VARCHAR(64)
);

-- Insert a record into 'users' table with user: 'test@findy.fi' and password: 'test'
INSERT INTO users (email, password) VALUES ('test@findy.fi', '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08');

Create .env file at the root of project and add TRUSTEE_SEED and JWT_SECRET value as enviornment variables.

echo "TRUSTEE_SEED=000000000000000000000000Trustee1\nJWT_SECRET=secret" > .env

Create and activate python virtual environment

virtualenv --python=python3.6 venv
source venv/bin/activate

Install dependencies and run the front end

pip install -r server/requirements.txt
source .env 
./start.sh $TRUSTEE_SEED $JWT_SECRET

How to run via docker

Clone repository

git clone https://github.com/FindyFi/findy-front.git
cd findy-front

Update pool_transactions_genesis based on which ledger you want to connect

Create .env file at the root of project and add TRUSTEE_SEED value.

echo "TRUSTEE_SEED=000000000000000000000000Trustee1" > .env

Build and run docker containers

docker-compose up