/team-management

CRUD application for managing teams

Primary LanguagePython

Team Management

CRUD Python application that allows users to manage teams.

Screenshot

View the Deployed App

Technologies Used

  • Python
  • Flask
  • virtualenv
  • Flask-SQLAlchemy
  • MySQL-Python
  • Heroku

Installation

When running locally, make sure to set up your virtual environment and database:

  • python3 -m venv venv outside of the project directory to create the environment for the project
  • If you're running a mac, use . venv/bin/activate to activate the environment
  • Deactivate the environment with deactivate
  • Run mysql mysql.server start, then mysql -u root
  • Create a user with CREATE USER 'dt_admin'@'localhost' IDENTIFIED BY 'dt2016';
  • Create the database with CREATE DATABASE dreamteam_db;
  • Add privileges with GRANT ALL PRIVILEGES ON dreamteam_db . * TO 'dt_admin'@'localhost';
  • Run the following code before running the app:
  • Install requirements with pip install --upgrade -r requirements.txt
export FLASK_CONFIG=development
export FLASK_APP=run.py
flask run