-
Notifications
You must be signed in to change notification settings - Fork 0
Knowledge
The first thing that you NEED to know for the BYU - Idaho Accessibility Site is JavaScript. Luckily it is one of the simplest languages. In JavaScript you need to know about Objects, Promises, and API calls. After you have a basic understanding of those you will be able to take on Angular.
Angular.io will be one of your greatest friends when it comes to Angular. That and YouTube. The first thing is you want to do the introduction of Angular Activity. Angular is a JavaScript framework. It is based on the idea of a single page website, so that your site loads faster. It was made this way so that if needed, this could go for a while without major rewrites. When searching for information about Angular do NOT use information about Angularjs. This is version one of Angular. We use version 6.
Some important things that I have learned from about Angular. First, this is a strongly typed language. It is not like JavaScript. Control the scope of your variables, do not use circular logic, and most importantly, use services! This is my absolute favorite part!
Firebase is the core of our application at this point. We use three of its services. Cloud functions for backend server-side code, Firebase Firestore for a database, and Firebase Hosting to host the site. We use the CLI (Command Line Interface) to run upload our data and the online console to set rules. However, you can set rules through a file on the computer and through the CLI. We might start doing that more.
We use the as storing and uploading data is the primary purpose of this site. We have a service to control all of our Firestore functions called database.services.ts. From here we can create, delete, update, and retrieve information about anything in the database. We use this on all of our pages and import it into the pages as 'db'. In order to properly manipulate data, you must understand promises, because that is almost everything there is to those functions.
Firebase Cloud Functions are critical for our search engine Algolia. This is how we update both the firebase and the Algolia index. Currently, we only have three. One that runs on every delete in the Firestore, one for every create in the Firestore, and one for every update.
Algolia is our search engine that we use. For futher documentation, I enjoy using Algolia Docs
Created By Calvin Smoot 2019, last update June 28th, 2019