# HMA Feedback Survey form
This is the repository for HMA Feedback Survey form.

# Local Development

## 1. Setting up on the local for the first time:
1. Generate the SSH key and add it to your GitHub settings.
    - Go to the folder on your machine where you create the ddev projects.
    - ssh-keygen -t ed25519 -C "<your_email>"
    - eval "$(ssh-agent -s)"
    - ssh-add ~/.ssh/<id_ed25519>
    - cat ~/.ssh/<id_ed25519.pub>
    - Create a new SSH Key on your GitHub settings page - https://github.com/settings/keys. Paste the contents of the key file from the above command.
    - ssh -T git@github.com
    - Enter yes on the prompt.
2. Clone the git repo using the SSH clone link - git@github.com:TeamFleetStudio/hma-feedback-survey.git
3. Install and enable the php extensions required for sqlsrv_connect - https://stackoverflow.com/questions/7402713/how-do-i-get-the-sqlsrv-extension-to-work-with-php-since-mssql-is-deprecated
4. Change the branch to *local-dev* - git checkout local-dev -- this prevents any test submissions to the DB (this is the same DB used for the live site).
