GithubHelp home page GithubHelp logo

hadirin's Introduction

Hadirin

Badge Main Branch

pipeline status coverage report

Badge Develop Branch

pipeline status coverage report

Repo ini menyimpan TK Kelompok 10 mata kuliah RPL Ganjil 2021/2022

Instruksi penggunaan

  1. Buat direktori untuk proyek yang akan kamu buat (contoh: project_name), lalu buka Command Prompt (cmd) atau Terminal di dalam direktori tersebut.

  2. Buat Python virtual environment di dalamnya.

    python -m venv venv

    Catatan: sesuaikan dengan executable python yang ada di komputer kamu, karena terkadang (misal: di Ubuntu atau macOS) Python 3 hanya bisa dipanggil dengan python3, bukan python.

  3. Aktifkan virtual environment yang telah dibuat.
    Di Windows:

    venv\Scripts\activate

    Di Linux/macOS:

    source venv/bin/activate

    Jika berhasil, akan muncul (venv) pada prompt cmd/terminal kamu.

  4. Instal terlebih dahulu package-package yang diperlukan dengan perintah berikut.

    python -m pip install -r requirements.txt
  5. Lanjutkan dengan membuat basis data lokal dan mengumpulkan berkas static menjadi satu direktori dengan perintah-perintah berikut.

    python manage.py migrate
    python manage.py collectstatic
  6. Jika sudah, kamu bisa menjalankan web server kamu secara lokal dengan perintah berikut.

    python manage.py runserver
  7. Mulai dari sini, kamu cukup edit berkas-berkas proyek Django kamu sesuai kebutuhan. Lalu, jangan lupa gunakan perintah git add, git commit, dan git push untuk mengunggah perubahanmu ke GitLab/GitHub (yang kemudian akan di-deploy ke Heroku). Jangan lupa untuk membuat berkas-berkas migrations jika kamu mengubah berkas models.py.

    python manage.py makemigrations

    Berkas-berkas migrations yang dihasilkan harus dimasukkan ke dalam repositori (kecuali kamu mengubah konfigurasi templat sehingga hal tersebut tidak diperlukan... tetapi mengapa?).

  8. Untuk menjalankan unit test, kamu bisa gunakan perintah berikut.

    python manage.py test --exclude-tag=functional

hadirin's People

Contributors

hanifanggawi avatar gerradnd avatar antoniusanggito avatar fwibisono87 avatar garyteofanus 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.