Skip to content
Hobby project for learning how to develop different kinds of applications using Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
members
offices
timesheet
.gitignore
README.md
requirements.txt

README.md

TimeTracker

A collection of Python apps for the workplace.

Environment

  • macOS 10.13.6
  • Homebrew 2.0.1
  • Python 3.7.2, pip 19.0.2, virtualenv 16.0.0
  • requirements.txt

Setup

  1. Install Python 3

    • On a Unix-based OS, the system's default Python installation might be Python 2. Check this by running python --version on a terminal. If this is so, install Python 3 but DO NOT REMOVE/OVERWRITE/UNINSTALL the old Python 2. The system uses Python 2 for its internal scripts and removing it may break the OS installation.
    • Use Homebrew
    • Verify the Python 3 installation by running which python3 and python3 --version on a terminal.
  2. Install pip

  3. Install virtualenv

    • Do pip install virtualenv
    • The purpose of using a virtualenv is to:
      • Allow different Python projects to have different packages
      • Prevent from accidentally overwriting a system package
  4. Install virtualenvwrapper

  5. Create the directory for storing Python virtual environments.

    • Ex. mkdir -p ~/.virtualenvs
  6. Add the following to your environment's .bash_profile (or its equivalent):

    export VIRTUALENVWRAPPER_PYTHON=$(which python3)
    export WORKON_HOME=~/.virtualenvs
    source /usr/local/bin/virtualenvwrapper.sh
  7. Create the virtual environment for this project's development.

    • Ex. mkvirtualenv timetracker
  8. Activate the project's virtual environment.

    • Ex. workon timetracker

    • The environment is activated when you see the (env-name) at the start of the prompt.

      (timetracker) gino@Work$
  9. Install the rest of the packages from requirements.txt.

    • Do pip3 install -r requirements.txt

Usage

  • (TODO)

References

You can’t perform that action at this time.