Serverless back-end for MONEI Wallet
User interface can be found here - monei-wallet-ui
Change config.yml to reflect your configurations
REGION
- aws regionINFURA_URL
- url to access infura.ioTOKEN_ADDRESS
- address of your ERC20 tokenMASTER_ADDRESS
- address of the owner of your ERC20 tokenMNEMONIC_KEY
- a key in AWS Secret Manager that hold mnemonic phrase to initialize master accountENCRYPT_PASSWORD_KEY
- a key in AWS Secret Manager that holds a password to encrypt user walletsIOT_ENDPOINT
- AWS Iot endpoint. Runaws iot describe-endpoint
to generate it
ES_INSTANCE_TYPE
: t2.small.elasticsearchES_INSTANCE_COUNT
: 1ES_VOLUME_TYPE
: gp2ES_VOLUME_SIZE
: 10
docker-compose up
make shell
to enter interactive docker environmentyarn
sls deploy
make shell
yarn
sls dynamodb install
serverless offline start --host 0.0.0.0 --migrate
After successful deployment console will output
===================== FRONT-END CONFIG =====================
Add this to the .env file in the front-end app
REACT_APP_REGION=...
REACT_APP_IDENTITY_POOL_ID=...
REACT_APP_USER_POOL_ID=...
REACT_APP_USER_POOL_CLIENT_ID=...
REACT_APP_GRAPHQL_ENDPOINT=...
REACT_APP_API_ENDPOINT=...
Copy this variables to .env.develop
in monei-wallet-ui
aws cognito-idp sign-up --region <REGION> --client-id <COGNITO_CLIENT_ID> --username <USERNAME> --password <PASSWD> --user-attributes Name=email,Value=<EMAIL>
aws cognito-idp confirm-sign-up --region <REGION> --client-id <COGNITO_CLIENT_ID> --username <USERNAME> --confirmation-code <EMAIL_RECEIVED_CODE>