Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
security_cw2/readme.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (26 sloc)
808 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CodeHub | |
CodeHub is a question answer web application. | |
## Requirements | |
```Run | |
pip3 install -r requirements.txt | |
``` | |
## Setting Enviroment Variables | |
enviroment variables need to be defined in the terminal before app is run | |
copy and past the abose commands. Change the values in ' ' | |
```python | |
"----------------ENV VARS----------------" | |
*each command has to be inserted separatly* | |
*admin account only created when home is accessed for the first time* | |
export SECRET_KEY='the_secret_key' | |
export SECURITY_PASSWORD_SALT='the_password_salt' | |
export MAIL_USERNAME='email_username' | |
export MAIL_PASSWORD='email_password' | |
export MAIL_DEFAULT_SENDER='full_email' | |
export SEED_ADMIN_EMAIL='admin_email' | |
export SEED_ADMIN_PASSWORD='admin_password' | |
``` | |
## Run | |
navigate to project directory | |
```Run | |
python3 run.py | |
``` |