IrishMorales / dorm-service-tracker

Tracks service hours and opportunities for dorm scholars of Ateneo de Manila University

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dorm-service-tracker

Tracks service hours and opportunities for dorm scholars of Ateneo de Manila University

pre-commit

Command Cheatsheet

If setting up the project for the first time on your local machine

  1. Create a virtual environment (open cmd in dorm-service-tracker and do python3 -m venv venv)
  2. Activate virtual environment (venv\Scripts\activate)
  3. Install packages into your virtual environment (pip install -r requirements.txt)
  4. Place .env file in your dorm-service-tracker folder. Open this file and add two new lines:
  • DB_user = 'Enter your MySQL username here'
  • DB_password = 'Enter your MySQL password here'
  1. Run pre-commit install to use packages to clean up code

If working on the project

  • Activate virtual environment (venv\Scripts\activate)
  • Run server ( python manage.py runserver)
  • Migrate your changes (python manage.py makemigrations > python manage.py migrate)
  • When running git commit, pre-commit hooks sometimes fails. This is not an error; pre-commit hooks are just updating your code. Simply run git add * and git commit again after it fails.

URLs

About

Tracks service hours and opportunities for dorm scholars of Ateneo de Manila University


Languages

Language:Python 49.9%Language:HTML 33.2%Language:CSS 16.9%