Code Monkey home page Code Monkey logo

cauca's Introduction

CAUCA

소개

  • CAUCA는 Court AUCtion Api service로 clojure를 이용해서 법원 경매 사이트를 수집하고, 사용자에게 REST API를 제공하는 서비스입니다.

요구사항

$> wget --no-check-certificate https://raw.github.com/technomancy/leiningen/stable/bin/lein
$> mv lein ~/bin/
$> chmod 755 ~/bin/lein
$> lein self-install

환경설정

  • MySQL
  • USER 생성
mysql> CREATE USER '$CAUCA_USER$'@'%' IDENTIFIED BY '$CAUCA_PASSWORD$';
mysql> GRANT ALL PRIVILEGES ON cauca.* TO '$CAUCA_USER$'@'%' WITH GRANT option;
mysql> FLUSH PRIVILEGES;
  • DATABASE 생성
mysql> CREATE DATABASE cauca;
mysql> FLUSH PRIVILEGES;
  • src/resources/cauca-context.yaml 에서 DB 정보 수정
:
db.subname: "//$CAUCA_HOST$:3306/cauca"
db.user: "$CAUCA_USER$"
db.password: "$CAUCA_PASSWORD$"
:

실행방법

# build
$> lein do clean, uberjar

# crawler
## crawler start
## Usage: lein daemon start crawler [REPEAT COUNT] [SLEEP SECOND]
##   REPEAT COUNT: -1(infinite), 1, 2, ...
##   SLEEP SECOND: Repeat the cycle
$> lein daemon start crawler -1 86400
## crawler stop
$> lein daemon stop crawler

# rest
## rest start
$> lein daemon start rest
## test main-page: http://127.0.0.1:8080
## rest stop
$> lein daemon stop rest

# lein daemon 은 Unix 계열에서만 실행이 되므로 Windows 에서는 uberjar 로 만든 jar 파일을 직접 실행하면 됩니다. 
$> java -cp .;src\resources;target\cauca-0.1.0-SNAPSHOT-standalone.jar cauca.component.crawler [REPEAT COUNT] [SLEEP SECOND]
$> java -cp .;src\resources;target\cauca-0.1.0-SNAPSHOT-standalone.jar cauca.component.rest

Demo

cauca's People

Contributors

guriguri avatar

Watchers

James Cloos avatar  avatar

Forkers

qqq-tech

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.