GithubHelp home page GithubHelp logo

appkr / thrift-example-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 2.0 224 KB

Apache Thrift의 사용법 데모를 위한 프로젝트

PHP 93.14% JavaScript 1.27% ApacheConf 0.69% Vue 0.62% HTML 4.28%

thrift-example-project's Introduction

Thrift Example Project

Apache Thrift의 사용법 데모를 위한 프로젝트.

더 상세한 내용은 이 블로그 포스트에서 확인할 수 있다.

1. 프로젝트 복제 및 기본 설정

깃허브로부터 프로젝트를 복제한다.

$ git clone [email protected]:appkr/thrift-example-project.git

.env 파일을 만든다.

$ cd thrift-example-project
~/thrift-example-project $ cp .env.example .env

이 프로젝트가 의존하는 라이브러리를 설치한다.

~/thrift-example-project $ composer install

이 프로젝트는 SQLite 데이터베이스를 사용한다. 데이터베이스 파일을 만들고, 스키마를 마이그레이션하고, 테스트 데이터를 심는다.

~/thrift-example-project $ touch database/database.sqlite
~/thrift-example-project $ php artisan migrate
~/thrift-example-project $ php artisan db:seed

2. Thrift 작동 확인하기

로컬 웹 서버를 기동한다.

~/thrift-example-project $ php artisan serve

새 콘솔 창을 열고, phpunit으로 Thrift 클라이언트를 실행해 본다.

~/thrift-example-project $ vendor/bin/phpunit

thrift-example-project's People

Contributors

appkr avatar

Watchers

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