'/register': Provides API functionality for registering user credentials and gesture data with the Bank API and the Gesture API. '/auth': Provides functionality for authenticating a user, either with username and password, or username and gesture data. After successful authentications, returns a token inside a JSON response which can be used to authenticate further interactions with the Bank API. '/reset': Provides functionality for reseting a password in the Bank and Gesture APIs. '/clear': Provides functionality for clearing a user record and gesture data stored by the Gesture API. '/helloworld/': Provides a helloworld endpoint which requires a token to authenticate, returning some sample response.
Installation is pretty straight forward. Create a Centos 7 EC2 (AMI ami-9887c6e7) with the staging key, preferrably in the Public Subnet with a Public IP enabled. Give it the 'Cyber Concepts Staging SG' so that you can SSH into it. Add a security group for it with port 80 enabled for all IPs (0.0.0.0/0)
SSH into the staging server (public IP), then SSH into the newly created EC2 (private IP). The user for the staging server is Ubuntu, the user for the new server is centos
ssh ubuntu@<ip>
ssh centos@<ip>
Install epel-release, git, python36, python36-pip, python36-virtualenv, nginx, make
sudo yum install epel-release git
sudo yum install python36 python36-pip python36-virtualenv
sudo yum install nginx make
Remove the default server from the /etc/nginx/nginx.conf
Clone the Bank API repo, cd into it, run make
to install the rest.
The Bank API should now be reachable through port 80