# Skillcourt Onboarding Documentation

## Requirements

- [Node](https://nodejs.org/en/download/) >= v14.0.0
- [Pnpm](https://pnpm.io/) >= v6.21.0
- [Docker](https://www.docker.com/)
- *Windows* [Docker Desktop](https://www.docker.com/products/docker-desktop)
- *Mac* [Vagrant](https://www.vagrantup.com/downloads)
- *Mac* [Virtual Box](https://www.virtualbox.org/wiki/Downloads) _or_ [VMWare Player](https://www.vmware.com/products/workstation-player.html)

## Technologies

### Typescript

All of the `skillcourt-website` systems in this repository are coded in Typescript. Typescript is used over Javascript because of its static typing and analysis features. The only main difference between Typescript and Javascript are:

  1. Static Typing
  2. Compilation of Typescript files to Javascript
  3. Advanced inclusion of modern ECMA features that may not be standardized in all web browsers/NodeJS.

Typescript documentation can be found [here](https://www.typescriptlang.org/docs/).

### Angular

The frontend of `pluma-online` runs on the [Angular](https://angular.io) framework. We've chosen Angular over React and other Javascript frameworks because:

  1. It is more standardized and opinionated with regards to its setup and file structure.
  2. More core features are standardized in official framework packages than other frameworks.
  3. It is no less performant than other frameworks while utilizing modern Javascript/ECMA features.
  4. It utilizes [Observable](https://rxjs.dev/guide/observable) behavior, which is substantially more powerful than synchronous Javascript or `async/await`.
  5. It integrates well with our backend server.

Angular's documentation can be found [here](https://angular.io/docs).

Additional training for Angular can be found on [LinkedIn Learning](https://www.linkedin.com/learning/topics/angular-2)

### NestJS

The backend of `skillcourt-website` run on the [NestJS](https://nestjs.com/) framework. We've chosen NestJS over other frameworks because:

  1. It uses the same patterns and dependencies as Angular.
  2. It is a Typescript-first framework.
  3. It integrates well with GraphQL use.
  4. Under the hood, it can be run on top of ExpressJS or other adapters.
  5. It allows for good integration with our Object-relationship manager.

NestJS's documentation can be found [here](https://docs.nestjs.com/).

#### NOTE

We do *not* use ExpressJS directly in this project. We use NestJS using ExpressJS as a lower-level http server. Do not confuse the two levels of the project and use ExpressJS natively.

### Prisma

[PrismaJS](https://en.wikipedia.org/wiki/Object%E2%80%93relational_mapping) is used as our Object-relationship manager. PrismaJS allows us to easily work with our underlying database platform without having to manualy perform queries on the database.

PrismaJS's documentation can be found [here](https://www.prisma.io/docs/).

### Docker

Docker is used for running our virtual hosting environement, which includes our webapp, database, and our cache layer. Using Docker is a requirement for working on the webapp environment as we wish to make sure that everything about the virtual environment works before pushing to production.

We use the `docker-compose` application to easily facilitate bringing up and shutting down the containers for local development and Kubernetes for the actual production environement.

Documentation for Docker can be found [here](https://docs.docker.com/).
