GithubHelp home page GithubHelp logo

nextbeat-public / summer-intern-2019 Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 14.0 12.18 MB

2019年 サマーインターン seed

Scala 13.76% HTML 9.92% TSQL 51.34% Batchfile 0.05% Shell 0.03% CSS 23.18% JavaScript 1.69% TypeScript 0.05%

summer-intern-2019's Introduction

Quick Start

Mac

required

  • sbt
  • node
  • yarn

DBの作成

今回はH2DBを利用して開発を行います。
特に断りがない場合、各コマンドはプロジェクトルートから実行してください。

H2 Database (RDB) の起動

  $ cd database
  $ ./h2.sh &

※ ブラウザが起動しますが、DBのmigrateをしていないためまだ操作しないでください。

ユーザ・DBの作成

FlyWayを利用してDBを作成します。

  $ sbt
  [SBT] > flywayMigrate

DBへ接続

JDBC URL: jdbc:h2:tcp://localhost/./nextbeat;MODE=MySQL
ユーザ名: nextbeat
パスワード: pass

H2DB 接続画面

DB作成・接続情報は以下に設定されています。
任意に変更可能ですが、慣れていない場合にはそのままにすることを推奨します。

build.sbt
build.sbt flyway設定

PlayFramework サーバーの起動

play secretの設定

秘密鍵の生成
  $ sbt
  [SBT] > playGenerateSecret
  Generated new secret: hogehoge
  [success] Total time: 2 s, completed {date}
秘密鍵の登録

生成した秘密鍵を設定ファイルに登録します。

[conf/application.conf]
play.http.secret.key   = "hogehoge"

Typescript / Scss のコンパイル (with ファイル変更監視)

  $ cd ui
  $ yarn install
  $ yarn run build.watch

サーバの起動とトップページの表示

  $ sbt run

サーバ起動後: http://localhost:9000 へアクセスしてください。
ページが正常に表示されていれば完了です。

summer-intern-2019's People

Contributors

hidechae avatar masaya-abe avatar nextbeat-public avatar raru-ex avatar sp1rytus avatar

Stargazers

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