Coder Social home page Coder Social logo

tranngocbaoduy / cowork Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 52.92 MB

CoWork App là ứng dụng giúp người dùng tạo các công việc cùng nhóm hoặc một mình, quản lý công việc mình đã, đang và sẽ làm. Gíup người dùng tracking với nhóm tốt hơn, tăng hiệu quả công việc

Home Page: https://www.facebook.com/tranngoc.baoduy.3

JavaScript 86.60% Python 13.40% HTML 0.01%

cowork's Introduction

cowork

Cowork APP: là folder chứa code giao diện của ứng dụng COWORK-APP (FRONT-END)

  • Để chạy được folder này chúng ta cần:
    1. Chạy npm install để cài đặt hết tất cả package cần thiết để build được chương trình nằm trong file package.json
    2. Mở expo app (down trên google play - app store)
    3. Kết nối Expo với app của mình sau đó gọi: npm start để start
    4. Dùng điện thoại vào phần chụp ảnh để quét mã QR sau đó đợi load chương trình

Server: là folder chứa server để gọi api lấy data cho ứng dụng COWORK-APP (BACK-END)

  • Để chạy được folder này chúng ta cần:

    1. Cài python - tốt nhất tải conda để tạo environment riêng để quản lí package ổn định
    2. Tạo một môi trường mới từ conda và kích hoạt môi trường đó theo lệnh:
      • conda create -n cowork python==3.6
      • conda deactivate
      • conda activate cowork
    3. Từ thư mục root chúng ta chạy lệnh:
      • pip install -r requirements.txt // để install các package cần thiết
      • python run.py
    • Vì React Native sẽ không chấp nhận các đường link api là http nên chúng ta phải config thêm ngrok để tạo 1 tunnel, trong tunnel này chúng ta tạo đường link https để gọi api, bằng cách gọi câu lệnh:

      • Window: ngrok http http://127.0.0.1:5000/

      • IOS/ Ubuntu/ Linux: ./ngrok http http://127.0.0.1:5000/

      • Sau khi chạy xong sẽ ra 2 dòng forwarding: chúng ta copy url https của dòng forwarding bên dưới và paste vào đường dẫn sau:

      "CoWorkApp/redux/service/index.js" sửa const URL lại tương ứng với cái vừa copy

      • Start lại server và app nếu cần thiết, sau khi reload thì chúng ta có thể lấy dữ liệu từ phía backend
  • Lưu ý: bên phía server đã config với mongoDB để có thể lưu trữ dữ liệu người dùng nên không cần làm thêm gì để config

cowork's People

Contributors

tranngocbaoduy avatar toridohikki avatar

Watchers

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