This is how you setup this project for the first time:
Front End:
- make sure if you open up the front end by clicking the project file that you specifically click the workspace file. this file is mostly white with a little bit of blue. otherwise you can just open up the project by opening the hospital app front end folder in xcode.
- install cocoa pods - $ sudo gem install cocoapods
- open up your terminal and navigate to the hospitalAppFrontEnd folder and enter "pod install" - not sure if this is necessary but it might be causing the bugs
- the only hospital in the database is "Baylor Scott & White". enter this value into the domain name field to proceed
- one user that exists has the following login credentials- username:"a" password: "a" . use these credentials at the login page to go to the patient request page.
- one administrator that exists has the following login credentials- username:"b" password: "b" . use these credentials at the login page to go to the table view of current patient requests
Back End:
- Download Postgres from the internet (it is an open source database software kit). as a part of this step you should create a postgres username and password. https://www.postgresql.org/download/
- add postgres to your path variable. https://www.postgresql.org/docs/9.1/install-post.html
- connect to the postgres in the terminal by opening up your terminal and typing in "psql"
- Create a database called "hospitaldb". https://www.postgresql.org/docs/9.0/sql-createdatabase.html
- make sure you have pip installed for python.
- open the terminal and navigate to the hospitalAppBackend folder and then type this in "pip install -r requirements.txt"
- run models.py
- run create_database.py
- run main.py
- after completing these steps for initial setup you only need to run main.py to start the backend
- to stop the backend from running you need to go in your terminal where main.py was executed and press control c
- everytime you change something in the backend and save the changed file the backend will automatically restart so you shouldn't have to stop the backend with conrol c unless you are completing your work