Code Monkey home page Code Monkey logo

noise-free-search's Introduction

機械翻訳のクソサイトとかを除いて検索するためのやつ

以前の履歴 → https://github.com/pn11/benkyokai/tree/master/web/Vue.js/noise-free-search

Usage

Yarn 導入

Ubuntu

sudo apt install yarn は別のものが入るのでやらないこと。以下の公式サイト通りにやる。

https://yarnpkg.com/lang/en/docs/install/#debian-stable

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

Ubuntu 16.04 では yarn を実行するとエラーになることがある。Node.js をアップデートすると治る。

Mac

brew install yarn

Create Project

mkdir noise-free-search
yarn init
yarn add webpack webpack-dev-server vue vue-loader vue-template-compiler

Start Server

node_modules/.bin/webpack #webpack でコンパイル
yarn start # http://localhost:4000 にアクセスで見られる。

デモ

Web フレームワークを初めて使ってみた。

Deploy on Firebase

yarn add firebase firebase-tools
node_modules/.bin/firebase login
node_modules/.bin/firebase init

で Hosting を選び public directory を www に指定する以外はすべて default で OK.

index.html に以下を追加。

<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="/__/firebase/6.1.1/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
    https://firebase.google.com/docs/web/setup#reserved-urls -->
<!-- Initialize Firebase -->
<script src="/__/firebase/init.js"></script>

以下でデプロイ。

firebase deploy --project default

デプロイ結果。Webアプリを初めて公開してみた。

CI でデプロイ

firebase login:ci

で token が生成されるのでこれを

firebase deploy --project default --token "GENERATED_TOKEN"

のように使えば GitHub Actions などで使える。

Reference

yarn, Webpack

Vue.js

クソサイトについて

noise-free-search's People

Contributors

pn11 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

noise-free-search's Issues

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.