Skip to content

Frontend Project Structure for Development

DanielLyubin edited this page Jun 25, 2018 · 1 revision

Components

This folder will hold GUI components generated for the app. In order to create a new component, execute ng g component components/<component_name>.

To add a new question type that a subject will answer, add a new component to components/test-page with the command ng g component components/test-page/<component_name>, since test-page is the component that renders the test that the subject will see

Models

This folder will hold classes that represent data objects (typically in json). A new class needs to be added to index.ts inside the folder.

Utils

This folder holds auxiliary classes for computing things in the project. For example, there's a class that measures the times for questions.

Services

This folder holds services for communicating with Cognitivity's databases: User DB and data DB

Clone this wiki locally