Giter Club home page Giter Club logo

calendar's Introduction

calender 環境設定の手順

pblsrv.cs.fit.ac.jp:18000/

1. はじめに

今回は2021年クラウドアプリ開発入門講座を受講し,独自のアプリ開発をすることになった.その報告会に向けた成果物として今回のカレンダープロジェクトを行っていく. しかし,クラウドアプリ開発の期間では完成させることができなかったため,プロジェクト型演習でその続きを行っていく.

2. 自分のリポジトリにフォークする

右上の Folk から 自分のリポジトリにフォーク してください.それをクローンしてください.

3. ローカルにリポジトリを保存する(cloneする)

コマンドプロンプトを開く.以下のコマンドを実行し,リポジトリをクローンしたいディレクトリに移動する.(1の開発環境以外の場所にある場合は各自で変更お願いします)

cd C://Django/vscode/Workspace

リポジトリをクローンする.(URLは各自で変更してください)

git clone https://github.com/自分のGithub_id/calendar.git

4.VScodeの開き方

  1. C://Django/vscode/VisualStudioCode.bat ファイルをクリック。すると、VSCodeが開く!(batファイルから開かないと,5.のactivate envができません.)

  2. ファイル → Open Folder → vscode/Workspace/calendarを選択。

  3. ターミナルを開き、「powershell」になっている人は、「cmd」に変更!

  4. 「cmd」になっている事を確認したら、activate envのコマンドを打つ!

     activate env
    
  5. clone後初めてVSCodeを開く場合は、以下のコマンドを打つ!(2回目以降はしなくてよい)

     python manage.py migrate
    
  6. django-alauthをインストールしていなければ、以下のコマンドを打つ

     pip install django-allauth
    
  7. 以下のコマンドを打ちサーバを立ち上げる!

     python manage.py runserver
    
  8. localhostにアクセスする

    localhost:8000    ※サーバーを閉じるときは「Ctrlキー + C」

5. pushするために必要な作業(VScodeのターミナルで実行する)

1.Githubのアカウント (VSCodeのターミナル)
例:git config --global user.name "takathosiinaoka"

git config --global user.name "Githubアカウント名"    

2.メールアドレス(VSCodeのターミナル)
例:git config --global user.email [email protected]

git config --global user.email メールアドレス

6.編集履歴の表示(TortoiseGit or Gitlog)

エクスプローラーで緑のチェックが入ったフォルダを右クリックし、「TortoiseGit」の「ログを表示」より閲覧できる。
また、VSCodeのターミナルで確認することもできる。以下のコードより確認できる。Enterキーを押すと過去のログが参照できる。「q」キーで終了する。

git log

7.フォークしたリポジトリを最新化する

フォークしたリポジトリを最新化する方法

1.GitHubのフォーク元のリポジトリをリモートブランチに追加する

git remote add upstream https://github.com/takatoshiinaoka/calendar.git

2.フォーク元のmainブランチの変更差分を持ってくる

git fetch upstream

3.mainブランチに移動し,フォーク元の差分をマージする

git merge upstream/main

4.Dangoのユーザー機能のインストール

pip install django-allauth

8. 編集

担当になった機能を実装します.変更したら,自分のリモートリポジトリにプッシュします.

9.プルリクエスト

自分の担当の機能が完成したら,Githubからプルリクエストをします.

自分のリポジトリのメインブランチ稲岡のリポジトリのメインブランチ

となるようにしてください.

calendar's People

Contributors

yuki326 avatar takatoshiinaoka avatar shunsuke-hoshino avatar 012xx avatar koheinishimoto avatar

Watchers

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