What does export PROJECT_DIR=/home/user/project add beyond a local shell assignment?
export PROJECT_DIR=/home/user/project
It creates a command alias named PROJECT_DIR.
PROJECT_DIR
It creates /home/user/project if the directory is missing.
/home/user/project
It marks the variable for inclusion in the environment of subsequently launched child processes.
It changes the value inside every process already running on the system.