Giter Club home page Giter Club logo

lab_exhibition_project's Introduction

Sample project 30주년 과제

Using front code kimhagyeong/Lab_exhibition_project [link]

FrontEnd

  • node.js 설치
  • npm i
  • npm start

BackEnd

  • Anaconda 환경으로 server 폴더 open
  • . condaenv.sh
  • . firststartserver.sh
  • 종료 후 . createsuperuser.sh 비밀번호 입력 (id : admin)
    • 다른 아이디로 생성 원할 시 python manage.py createsuperuser
  • . runserver.sh로 서버 실행
  • api 설명
    • BackEnd 실행 IP = BIP (218.150.xxx.xx)

      HTTP Method URL Body Response
      POST http://BIP:8000/cs {img : FrontEnd에서 웹캠으로 촬영한 사진} 18개의 작품에 대한 결과 url 리스트
      GET http://BIP:8000/cs - 18개의 작품에 대한 결과 url 리스트
      GET http://BIP:8000/cv/<int:art_id> - art_id에 대한 3가지 variation을 포함한 결과 4개 url 리스트
      GET http://BIP:8000/cp/<int:art_code> - art_id : art_code//10
      final selected art : art_code%10
      art_idfinal에 대한 출력물 변환 결과 url

실행 정보

  • 프로젝트 화면 http://BIP:3000/
  • django 객체 관리 화면 http://BIP:8000/admin
  • 원격 Backend 실행 시
    • server/runserver_remote.sh의 ip 변경하여 사용 ( {BIP}:8000 )
    • server/painter/utils.pyURL을 위와 동일하게 변경
    • front/src/conponent/theme.jsBackendServer를 위와 동일하게 변경

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.