A sample application showing off webapp authentication with the Elastos DID blockchain and Elaphant Wallet
-
git clone https://github.com/compy/elastos-did-auth-sample -
cp .env.dist .env -
Edit .env and supply your DID information and database credentials
-
If you're on Ubuntu, you might have to install these tools first:
sudo apt install php7.2 php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-mysql php7.2-mbstring php7.2-zip php7.2-fpm php7.2-xml composer -y -
If you're on Mac, you might have to install these tools first:
brew update && brew install phpThen, install composer:curl -sS https://getcomposer.org/installer | phpOnce composer is downloaded, you need to set an alias to composer.phar by adding something like the following on your ~/.bash_profilealias composer="php ~/composer.phar" -
composer installto install composer dependencies -
php artisan key:generateto generate an encryption key for your application -
php artisan migrateto set up the initial database schema -
npm installto install NPM dependencies for frontend building -
npm run devto generate assets -
php artisan serve --host 0.0.0.0
Note: If you're using Laravel Valet or Homestead, then your application is available at http://elastos-did-auth-sample.test or whatever directory name you cloned the repo to.
This application is licensed under the terms of the MIT license