Create a simple a project and task management web application. Think of an extremely simplified version of Teamwork or Asana.
| Name | Email | Gitlab Access | | --- | --- | --- | --- | | Sanju Sci | [email protected] | Owner |
- Python = 3.6
- Pip3 >= 1.5
- MySQL >=5.5
- Virtualenv>= 1.11
- Create virtual environment, and activate it (Optional)-
# Install `virtualenv`
virtualenv -p python3 .env
# Activate virtual environment
source .env/bin/activate
- Clone git repository -
git clone https://github.com/sanjusci/TaskManagement.git
# cd to `project-dir`
cd TaskManagement
-
Install dependencies -
On Local -
pip3 install -r requirements.txt
On Prod -
pip3 install -r requirements.txt --user
# Add current project to `PYTHONPATH`
export PYTHONPATH="$PYTHONPATH:."
-
Set environment variables -
If project is being run under
virtualenv
then environment variables can be set under.env/bin/activate
file.
vim .env/bin/activate
# Append following lines at the end of the file after making appropriate changes.
export MYSQL_DB_USERNAME='<mysql_username>'
export MYSQL_DB_NAME='<mysql_database>'
export MYSQL_DB_HOST=localhost
export MYSQL_DB_PASSWORD='<mysql_password>'
export MYSQL_DB_MAX_AGE=<mysql_connect_age>
export MYSQL_DB_PORT=<mysql_port>