mattseddon / backend_project_v1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backend_project_v1

instructions to get running

  • Install python 2.7
  • Install pip (looks like this ships with python now)
  • Download and install mySQL server (FYI - I have my root user setup with the password: "password". This is reflected in the settings.py file as 'root:password' where SQLAlchemy binds to the database. If you have a different user/password combination then be sure to update the information in the settings.py file)
  • Start MySQL server on windows or linux / mac
  • Use pip to install pipenv (pip install pipenv)
  • Pull a copy of the project from this repository
  • Whilst still in cmd prompt | terminal and the new directory (set or export dependent on environment):
    1. set | export FLASK_APP=autoapp
    2. set | export FLASK_ENV=development
    3. set | export FLASK_DEBUG=1 (*only if you would like pretty JSON returned)
    4. pipenv install
    5. pipenv run flask run (BEWARE if you are binding to an existing MySQL instance this will try to create an instance of the "CRM" database, also a warning will be generated about utf8 as an alias but you shouldn't be concerned)
  • test.py can be run to validate that everything is working as expected
  • expected results are shown in the test_results.txt file in this repository

About


Languages

Language:Python 100.0%