dl-eric / naccs-web

A Flask App powered by AWS Cognito [old]

Home Page:https://www.collegiatecounterstrike.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NACCS website

This is the official repository for the North American Collegiate Counter-Strike website!

Master branch should ALWAYS be production ready. No continuous deployment is set up at the moment.

Local Deployment

Make sure you have the following environmental variables:

  • AWS_COGNITO_CLIENT_ID

  • AWS_COGNITO_POOL_ID

  • AWS_IAM_ACCESS_KEY

  • AWS_IAM_SECRET_KEY

  • AWS_DEFAULT_REGION

  • FLASK_SECRET_KEY

  • DB_DB

  • DB_HOST

  • DB_PASSWORD

  • DB_USER

The AWS keys are AWS Cognito dependent. The Flask key can be anything, just make it secure!

An example of setting an environment variable to your shell is

export FLASK_SECRET_KEY="Super secret and secure key!"

Once you have your variables set up, move on.

*We are using a virtual environment to contain our dependencies.

Linux: Clone the repository and go into the root folder.

# In Bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
FLASK_APP=main.py flask run

From there, the Flask app should be running on localhost:5000.

Contribution

tbd

About

A Flask App powered by AWS Cognito [old]

https://www.collegiatecounterstrike.com


Languages

Language:Python 39.9%Language:HTML 37.7%Language:CSS 19.0%Language:JavaScript 2.9%Language:Dockerfile 0.4%Language:Shell 0.2%