Git Product home page Git Product logo

da_project's Introduction

DA_Project

如何執行試題1

  1. 首先,確保你已經在你的電腦上安裝了 Docker。如果沒有,請參考 Docker 官方網站 來獲取安裝說明。

  2. Build DA_Project Docker Image:

    docker build -t test_image .
  3. 運行 Docker 容器:

    docker run -it --network="host" -v .:/app test1_image

    這個命令會在 Docker 容器中啟動 test1.py

如何執行試題2

  1. 首先,執行先執行以下指令安裝所需套件。
    pip install -r requiments.txt
  2. 然後到試題3中運行 docker-compose.yml,利用 Docker建立 Mongodb,一樣這裡需要安裝 Docker,可參考試題1至官方網站的安裝方式。
    docker-compose -f docker-compose up -d
  3. 直接執行Python腳本即可將CSV2JSON.csv資料轉換成 Json格式,並且寫入 Mongodb。
    python test2.py

注意事項

  • 請確保你的 Docker 版本符合要求,並且已經正確安裝了 Docker。

da_project's People

Contributors

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