GithubHelp home page GithubHelp logo

compy / elastos-did-auth-sample Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 410 KB

A sample application showing off webapp authentication with the Elastos DID blockchain and Elaphant Wallet

PHP 6.13% CSS 10.16% JavaScript 82.43% Vue 0.03% HTML 1.25%
php laravel laravel-framework blockchain elastos authentication security

elastos-did-auth-sample's Introduction

elastos-did-auth-sample

A sample application showing off webapp authentication with the Elastos DID blockchain and Elaphant Wallet

Installation

  1. git clone https://github.com/compy/elastos-did-auth-sample

  2. cp .env.dist .env

  3. Edit .env and supply your DID information and database credentials

  4. 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

  5. If you're on Mac, you might have to install these tools first: brew update && brew install php Then, install composer: curl -sS https://getcomposer.org/installer | php Once composer is downloaded, you need to set an alias to composer.phar by adding something like the following on your ~/.bash_profile alias composer="php ~/composer.phar"

  6. composer install to install composer dependencies

  7. php artisan key:generate to generate an encryption key for your application

  8. php artisan migrate to set up the initial database schema

  9. npm install to install NPM dependencies for frontend building

  10. npm run dev to generate assets

  11. 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.

License

This application is licensed under the terms of the MIT license

elastos-did-auth-sample's People

Contributors

compy avatar kpachhai avatar

Watchers

 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.