- 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):
- set | export FLASK_APP=autoapp
- set | export FLASK_ENV=development
- set | export FLASK_DEBUG=1 (*only if you would like pretty JSON returned)
- pipenv install
- 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