news-sniffer
A project that watches news media webpages for changes in news articles
파일 탐색기
최종 버전 다운로드 (.zip)- application.js
- _config.scss
- _diffs.scss
- _header.scss
- _layout.scss
- _mixins.scss
- _newssniffer-legacy.scss
- _normalize.scss
- _pagination.scss
- _search.scss
- _tables.scss
- _typography.scss
- application.scss
- application_controller.rb
- health_controller.rb
- news_articles_controller.rb
- versions_controller.rb
- application_helper.rb
- news_articles_helper.rb
- versions_helper.rb
- external_text_blob.rb
- xapian_indexing.rb
- news_article.rb
- news_article_feed.rb
- news_article_feed_filter.rb
- news_article_version.rb
- news_article_version_text.rb
- newsniffer.html.erb
- index.html.erb
- show.html.erb
- show.rss.builder
- _pagination.html.erb
- diff.html.erb
- index.html.erb
- index.rss.builder
- show.html.erb
- bundle
- rails
- rake
- development.rb
- production.rb
- test.rb
- assets.rb
- backtrace_silencers.rb
- cookie_verification_secret.rb
- cookies_serializer.rb
- filter_parameter_logging.rb
- inflections.rb
- mime_types.rb
- new_rails_defaults.rb
- secret_token.rb
- session_store.rb
- wrap_parameters.rb
- en.yml
- application.rb
- boot.rb
- database.yml.docker
- environment.rb
- preinitializer.rb
- routes.rb
- 001_bbchys.rb
- 002_create_variables.rb
- 003_comment_modified_at.rb
- 004_create_votes.rb
- 005_votechanges.rb
- 006_vote_counter.rb
- 007_news_article.rb
- 008_create_comments.rb
- 009_hysindexes.rb
- 010_hys_last_rss_pubdate.rb
- 011_hys_thread_description.rb
- 012_drop_nav_fulltext.rb
- 013_drop_hys_fulltext.rb
- 20090517210736_add_next_check_after_to_news_article.rb
- 20090519163457_add_check_period_to_news_article.rb
- 20090519224058_add_last_version_at_on_news_article.rb
- 20090522230223_create_news_article_feeds.rb
- 20090524002852_add_source_to_news_article_feed.rb
- 20090524004512_add_parser_to_news_article.rb
- 20090525160820_create_news_article_feed_filters.rb
- 20090705092959_vote_rejig.rb
- 20100605121257_drop_latest_text_hash_and_last_version_at.rb
- 20130613161034_add_hidden_to_news_article.rb
- 20151226220759_news_article_version_text_utf8mb4.rb
- schema.rb
- seeds.rb
- .gitkeep
- newssniffer.rake
- diff_html.rb
- http.rb
- LICENSE
- stacked_logger.rb
- timed_fragment_cache.rb
- arrow_left.png
- arrow_right.png
- newsniffer-text.png
- rails.png
- speech.gif
- .htaccess
- 404.html
- 422.html
- 500.html
- dispatch.cgi
- dispatch.fcgi
- dispatch.rb
- favicon.ico
- robots.txt
- benchmarker
- profiler
- request
- inspector
- reaper
- spawner
- about
- autospec
- breakpointer
- console
- dbconsole
- destroy
- generate
- newssniffer-hys-rrd.rb
- plugin
- rails
- runner
- server
- spec
- spec_server
- bbc_uk_politics.xml
- nyt_global_home.xml
- 6072486-A.stm.html
- 6072486-B.stm.html
- 7984711-A.stm.html
- 7984711-B.stm.html
- 7984711-invalid.html
- news_article_feed_filters.yml
- news_article_feeds.yml
- news_article_feed_filter_spec.rb
- news_article_feed_spec.rb
- news_article_spec.rb
- news_article_version_spec.rb
- news_sniffer_helper.rb
- rails_helper.rb
- rcov.opts
- spec.opts
- spec_helper.rb
- comments.yml
- news_article_version_texts.yml
- news_article_versions.yml
- news_articles.yml
- variables.yml
- votes.yml
- admin_controller_test.rb
- news_articles_controller_test.rb
- pages_controller_test.rb
- versions_controller_test.rb
- browsing_test.rb
- versions_helper_test.rb
- comment_test.rb
- news_article_test.rb
- news_article_version_test.rb
- news_article_version_text_test.rb
- variable_test.rb
- vote_test.rb
- test_helper.rb
- bayes.rb
- bayes.yaml
- word-stats.rb
- footer.php
- header.php
- index.php
- searchform.php
- sidebar.php
- single.php
- style.css
- .dockerignore
- .gitignore
- config.ru
- Dockerfile
- Dockerfile.blog
- Gemfile
- Gemfile.lock
- LICENSE
- Makefile
- Rakefile
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/johnl/news-sniffer
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd news-sniffer
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker build -t news-sniffer .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run -p 8080:80 news-sniffer
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. Ruby
쉬움$ bundle install
Gemfile에 명시된 루비 라이브러리를 설치합니다.
$ bundle exec rake db:create
이 명령어를 터미널에 그대로 입력해 실행하세요.
$ bundle exec rake db:schema:load
이 명령어를 터미널에 그대로 입력해 실행하세요.
$ bundle exec rails console
이 명령어를 터미널에 그대로 입력해 실행하세요.
$ bundle exec rake newssniffer:articles:update
이 명령어를 터미널에 그대로 입력해 실행하세요.
bundle install이 에러 없이 끝나면 README에 안내된 실행 명령어(예: rails server)로 마저 실행해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
