YameTechs / website

Service webiste of yametechs
MIT License
3 stars 3 forks source link

Website

Lints & Tests CodeQL Coverage Black

The official website for YameTechs

Todos

other features

codes

routes

Setting Up Instructions

1. Setup the files

# 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

sample layout of .env file

# 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'

2. Setup virtual environment

# 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 shell

3. Pushing

After 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