Giter Site home page Giter Site logo

dsc-sookmyung / 2021-openminder-solutionchallenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 25.55 MB

🍽 Everyone's Meal : An app designed to manage people's regular and healthy diets.

JavaScript 47.78% Starlark 1.00% Java 39.42% Ruby 0.44% Objective-C 2.31% Python 8.10% HTML 0.95%

2021-openminder-solutionchallenge's Introduction

2021 Solution Challenge : Everyone’s meal

  • Team : Open Minder
  • Members : Heyju Jun, Juyeon Lee, Haram Lee, Minhye Shin

Demo video

How to run

1. Download this project

git clone https://github.com/dsc-sookmyung/2021-OpenMinder.git

2. Run Object detection REST API server

cd /path/to/2021-OpenMinder/object_detection_api/

(1) Setting up a python virtual environment (Choose one of the two)

  • In anaconda prompt
conda create -n "test" python=3.7
conda activate test
  • or in local environment
python -m venv myproject
cd /venvs/myproject/Scripts
activate

(2) Install libraries in virtual environment (Choose one of the two)

  • Download using requirements.txt
pip install -r requirements.txt
  • or download one by one
pip install flask
pip install flask-restful
pip install tensorflow==2.3.1
pip install pandas
pip install jsonify
pip install werkzeug
pip install pillow

(3) Create an secret.json file

{
    "accesskey": [YOUR API KEY]
}

(4) Run server

python api.py

3. Run Spring boot backend server

cd /path/to/2021-OpenMinder/emeal

(1) Create an application.yml file

# in emeal/src/main/resources/application.yml
# Make GCP SQL instance and enter the following items

spring:
  datasource:
    hikari:
      jdbc-url: [YOUR DB URL]
      username: [YOUR DB USERNAME]
      password: [YOUR DB PASSWORD]
      driver-class-name: com.mysql.cj.jdbc.Driver
  servlet:
    multipart:
      enabled: true
      file-size-threshold: 2KB
      max-file-size: 200MB
      max-request-size: 215MB
      location: C:/Temp

mybatis:
  type-aliases-package: openminder.emeal.mapper
  mapper-locations: mybatis/mapper/**/*.xml

file:
  upload_dir: ./static/upload/avatar
  upload_picture_dir: ./static/upload/picture

(2) Build and Run server

4. Run React-native frontend client

cd /path/to/2021-OpenMinder/emeal/src/main/frontend/

(1) Put your localhost IP address in the ipConfig.js file

export const LOCAL = 'http://[YOUR IP ADDRESS]:8080';

(2) Install android emulator

  • If you don't have NDK version 21.0.6113669 in Android Studio SDK Tools, install it.

(3) Install packages

yarn install
yarn android

(4) Run client

react-native run-android

Skills

Frontend - React Native, Redux
Backend - SpringBoot, Flask

Contributors

2021-openminder-solutionchallenge's People

Contributors

hrxorxm avatar hyeju1123 avatar juyonlee00 avatar slsksh avatar

Watchers

 avatar

Forkers

juyonlee00

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.