This requires python 3 to be installed on your machine.
- Navigate to the root folder of this in command line (from file explorer type 'cmd .' into the address bar).
- Change to the 'scripts' folder ('cd scripts')
- Start the python virtual environment using command 'activate'
- Go back to the root directory ('cd..')
- launch the server using command 'python3 server.py'
- Confirm server is running by opening the browser window and navigating to http://localhost:5000 and making sure you get a message saying server is running.
- Server can be shutdown from the command line by pressing CNTL+C
This script is required to run from within a flask server, there are other ways to do this (ie as a simple script) however this is how I chose to do it for the purpose of potentially integrating it into the web server later.
- Ensure FILEPATH variable in env.py is equal to the local path to the csv file to import before launching server. If it was changed shutdown and restart server.
- Navigate browser to http://localhost:5000/go
- If successful you will get a message back saying processing complete.
env.py username, password and database connection strings removed for security. contact lrowell@deakin.edu.au