The official website for YameTechs
- captcha
- security stuff
- clean email msg
- events
- home
- admin
- database view
- about
- contacts
- portfolio
- projects
- services
- CRUD operation on service post
- users
- settings
- backend
- frontend
- account
- UI
- forgotten password
- verify email (email)
- login
- logout
- register
- verify account (email)
- settings
# Clone the repo
git clone https://github.com/YameTechs/website.git
# cd to the project
cd website
# make .env file
touch .env
# edit your .env file ( you could use an editor to edit this file btw )
nano .env# Only set this to true if you are developing
DEVMODE='True'
# This could be anything
FLASK_SECRET_KEY='your secret key'
# You could keep this if you don't know what else to put in here
DATABASE_URI='sqlite:///test.db'
# This must be a real email!
EMAIL_USER='your_email@mail.com'
# THis must be the password for your email above!
EMAIL_PASS='your_password'
# Get you key in google recaptcha (just google it)
RECAPTCHA_PUBLIC_KEY='site_key_from_google_recaptcha'
RECAPTCHA_PRIVATE_KEY='private_key_from_google_recaptcha'
# This is the main user that will be added as the main admin
MAIN_ADMIN_EMAIL='youre_mail@mail.com'
MAIN_ADMIN_PASSWORD='your_password'
MAIN_ADMIN_USERNAME='your_username'# For installing the virtual environment
pip install pipenv
# Now setup pipenv (add --dev if you will be developing code)
pipenv sync --dev
# Start the shell
pipenv shellAfter making changes to your code run the following
# To fix the code in a certain format do:
pipenv run isort .
pipenv run black .
# To lint the code do:
pipenv run flake8 .
# To test the code do:
pipenv run python -m pytest --cov