Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

FP Scala Back-end of the Smart Backpacker App

License

NotificationsYou must be signed in to change notification settings

leetoo/core

 
 

Repository files navigation

logo Smart Backpacker

Build Statuscodecov

Smart Backpacker is an App where you can find Visa Requirements information for any country in the world regardless of your nationality, currency exchange, health information and airline's baggage policy among others.

  • Download it forAndroidhere.
  • Download it foriOShere

Metrics Snapshot (12th Feb of 2018)

metrics

Anybody with a GitHub account can view these metrics in real time onhttp://stats.smartbackpackerapp.com/

Modules

Api

It's the main back-end application exposing the Http Rest API (Seedocumentation). It also contains a token generator.

  • Dependencies
    • Fixer.io running onlocalhost:8081 usingdocker-compose. See the source codehere. Or you can also use the public API, just change the URL in the configuration.

Airlines

It contains the job to insert new airline's data using plain files as the source (fs2.io is used here).

Common

It contains some utils forcats.effect.IO,fs2.Stream, logging, testing, etc.

Scraper

It has all the html page parsers and scrapers and all the jobs to insert parsed data into the DB.

sbt project scraper
  • Retrieve Visa Requirements from Wikipedia and persist it to the DB:
run visaRequirements
  • Retrieve Visa Restrictions Index (Passport Ranking) from Wikipedia and persist it to the DB:
run visaRanking
  • Retrieve Health information from CDC and persist it to the DB:
run healthInfo
  • Insert initial data (Countries and Visa Categories) into the DB:
run loadCountriesrun updateCountriesrun loadVisaCategories

Database

Smart Backpacker usesPostgreSQL as the main data storage.

Tech Stack

We love Functional Programming. That's why we choose and support theTypelevel stack. We also use a few other dependencies (seebuild.sbt for more):

DependencyVersion
cats1.0.1
cats-effect0.8
http4s0.18.0
circe0.9.1
doobie0.5.0
fs20.10.2
monix3.0.0-M3
tsec-jwt-mac0.0.1-M9
scala-scraper2.0.0
scalatest3.0.3
scalacheck1.13.4

LICENSE

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance withthe License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specificlanguage governing permissions and limitations under the License.

Packages

No packages published

Languages

  • Scala99.9%
  • PLpgSQL0.1%

[8]ページ先頭

©2009-2025 Movatter.jp