Coder Social home page Coder Social logo

chu-fyp's Introduction

目錄結構

  • postgresql

    • data #系統自動備份的 postgresql 資料
  • Django

    • backend #專案放置位子
    • Dockerfile #建置 Django 的 Dockerfile
  • React

    • frontend #專案放置位子
    • Dockerfile #建置 React 的 Dockerfile

Docker 配置分三個容器

  1. Backend - Django
  2. Frontend - React
  3. DB - PostgreSQL

1為主要容器,容器名稱預設為 chu-fyp-backend-1 可在 docker-compose 內自定義(docker compose services底下的name)

如何初始化Images ?

在根目錄chu-fyp執行 docker-compose build

如何啟用容器 ?

在根目錄chu-fyp執行 docker-compose up

如何在容器內下指令 ?

docker exec -it {容器名稱} /bin/sh

如何得知當前執行容器與其名稱 ?

docker ps

引用

Dockfile、Docker Compose 建立環境

React、Django 教學

React、Django 教學 - 2

React 、Redux 、TypeScript 教學

專案狀態

feat : 新增功能或物件
fix : 修復功能或物件

database

  • 清除所有資料
    1. python manage.py flush --noinput
    2. python manage.py sqlflush
    3. python manage.py createsuperuser
  • 更改或新增 table
    1. python manage.py makemigrations
    2. python manahe.py migrate

chu-fyp's People

Contributors

blankk-1023 avatar chiajy02 avatar guanghui225 avatar kolihhan 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.