Skip to content

Steps to create your first app

Susan A Murphy edited this page Jun 22, 2020 · 24 revisions

This is out of date!

1. Go to our repository page on github:

   https://github.com/mashfiqui-rabbi/SARAv2. 

Click on "Pull Request" button in the repo header to pull our code in your own laptop or desktop; or you can use git command line or use sourcetree (https://www.sourcetreeapp.com/) or github desktop to pull our code.


2. Create a new branch or fork our code. Follow this link to create a new branch. If you want to create your private copy of our project, please fork our repo. However, it would be great if you can contribute to our codebase; this will remove bugs and make the code more useful to you or others. Nonetheless, we strongly advise you to not commit your proprietary code in our codebase. Our codebase is entirely open-source.

   https://guides.github.com/activities/hello-world/


3. Create a first page to display Aquarium:

Change home.page.html to below or you an create a new component, change .html file as below and change app-routing.module.ts to have first page show the new component:

   <ion-content><app-demo-aquarium></app-demo-aquarium></ion-content>


4. create a button to call the dynamic survey. At demo-aquarium.component.html, add below to ion-toolbar

    <ion-buttons slot="end"><ion-button href="/survey/dynamicsurvey">
        Start Survey
    </ion-button></ion-buttons>


5. How can you create your own survey

i. create json file to put in folder /assets/data, refer to the format of alex_survey.json.
ii change fileLink in file survey/sample-survey.component.html to be the name of the json file created above
Clone this wiki locally