Every workday there is a Daily Scrum in the team area (after the flight standup) for the developers. There we discuss roadblocks, what we did the previous work day, plans this current day and so forth. You and your partner are expected to complete the tasks together; if research is needed, you’ll both be expected to conduct it. This ensures knowledge sharing occurs. Cell Phone use in the team area will be kept to a minimum. Breaks can be taken outside of the team area where members can use their phones freely. Responsibility for how long and frequent breaks occur will be at the discretion of the member until it becomes an issue. Members are expected to attend all Scrum Events to include: Backlog Grooming, Sprint Planning, Daily Stand-ups, Sprint Reviews, and Sprint Retrospectives. Please plan leave, appointments, meetings, and volunteer opportunities around these important events.
We use Google Calendar for tracking all Scrum Events, Leave, Appointments, Squadron/Flight events, etc.
You will need to register for accounts through all these sources before setting up your development environment.
-
VS Code is a text editor, but one that is extensible with diverse types of plugins. With these plugins VS Code turns into a “IDE” that combines version control, Intellisense, Live Share, formatting, and many other QoL features. We need an IDE to edit JavaScript/typescript projects. Download here, Visual Studio Code - Code Editing. Redefined.
-
Make sure you click on “Open w/ Code” functions in the installer
-
After installing, make sure to enable execution policies if you are on windows. about Execution Policies - PowerShell | Microsoft Docs
- Run on an Administrator Powershell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
- Run on an Administrator Powershell:
-
Be sure to add the recommended extensions to VSCode, a list can be found in the .vscode/extensions.json file in the repository
- Node.JS is a JavaScript runtime environment that allows for front-end and back-end work using the JavaScript programming language. It allows us to run JavaScript on a server/desktop as opposed to just in the browser. For Windows/MAC users, download the latest version here, Download | Node.js (nodejs.org). Get the “LTS” version (IMPORTANT!)
-
You will need to run this after installing node. Copy and paste this onto the command prompt. Note that MAC users/Linix machines may not be able to simply copy and paste do to different ASCII characters. Do not forget to add “sudo” in front of it for Mac/Linux.
npm install –g @nestjs/cli
-
Install YARN, we are using this instead of NPM for our package manager
npm install -g yarn
-
Regardless of what Git system you use (vanilla command line, vanilla git GUI, built into your IDE, a desktop client, etc) you need to download the Git tools. These can be found here, Git - Downloads
-
For MAC users, install Homebrew first w/ the instructions here, The Missing Package Manager for macOS (or Linux) — Homebrew
-
Ensure that you change the CRLF settings to: Checkout as-is, commit as-is (Dont worry about this step if using MAC)
-
In PowerShell, set Ubuntu WSL to version 2
wsl --set-version ubuntu 2
-
In WSL (Ubuntu), make sure to update it
sudo apt update
apt list -–upgradable
sudo apt upgrade
-
Return to PowerShell and ensure WSL 2 is installed
wsl -l -v
[Windows/Linux]
- You will need to install WSL 2 as part of this if you are on windows, refer to the section above. The below instructions are for Windows/Debian (Ubuntu is Debian).
[Rancher Desktop]
-
Install Rancher Desktop, Installation | Rancher Desktop Docs. Launch it and wait for it to finish installing the required packages. Use the dockerd runtime if anything asks for it.
-
Open the ODST repository in VSCode and open a Rancher WSL terminal. Ensure it's working by runnning the following command
docker container run hello-world
-
Use apt to install the appropriate packages to be able to transfer files over http, get certificate authorities, ensure curl is installed and install a tool to communicate to your linux distro.
sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
-
Download the GPG key for Docker:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-
Install the stable version of Docker
-
Go to this Pastebin and copy and paste the contents into wsl
-
Install Docker Utilities:
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
sudo apt install docker-compose
-
You will need to start Docker in WSL after every restart:
sudo service docker start
-
Test that it is working:
sudo docker run hello-world
[Ironbank]
-
Create an Ironbank account
-
Log in to Harbor
-
Go to User Profile and copy CLI Secret
-
In WSL, run
sudo docker login registry1.dso.mil -u=YOUR_USERNAME
(Login with your username replacing YOUR_USERNAME and CLI secret for your password) -
If logging into IronBank via WSL throws an error regarding not being able to store credentials, you have to make a GPG key
- Run
gpg --gen-key
- Choose option 1
- Choose a bit size
- Choose 0, does not expire, and then Y to confirm
- Give name and email (used to generate user ID), then O to confirm
- Create a passphrase
- Find output line
gpg: key [KEY] marked as ultimately trusted
, this is your key - Run
pass init KEY
replacing KEY with your key
- Run
-
Youhould now be able to execute:
sudo docker pull registry1.dso.mil/ironbank/opensource/postgres/postgresql12
-
Navigate to the ODST repo on WSL and run
sudo docker-compose up postgres -d
(This method will support docker-compose files up to version 3.7)
-
Now start your image
docker compose up -d
- Insomnia is a routing client we use to test our API
- Download - Insomnia
-
The following are helpful links for learning how to navigate and use the Nx Console
password: admin
username: admin
docker build . --file ./apps/{app}/Dockerfile
nx docker {app}
Careful with this, due to that it pushes it up with the :latest
tag. Add --push=false
to not push built images up to registry.
docker-compose up ods-migrate
docker-compose up ods
Add -d
to start them in the background; can change ods
to another service if you'd like.
ods
is dependent on ods-api
, which is in turn dependent on postgres
, so just specifying ods
will start entire stack.
If you only say docker-compose up
, all services will be started, including ods-migrate
.
#migration
docker compose up ods-migrate
#ods stack
docker-compose up ods -d
ods: ods:latest
, ods:v0
ods-api: ods-api:latest
, ods-api:v0
ods-migrate: ods-api:migrate
, ods-api:v0-migrate
This could be because you've made changes to the schema and didn't rerun the backend. Serving the backend and running yarn
again will ensure the graphql schema and types will be generated properly.
Need to remove prisma references from frontend and only use the generated graphQL files.
When creating a new prisma database, you need to specify what project it is made for in the prisma.schema under outputs.
Ensure that you marked Tailwind as "Important" under tailwind config.
Don't import from the .graphql file, import from .generated file
Coerce the type to the expected prisma type. Will probably need to do it on resolver.
Example: UserWhereInput as Prisma.UserWhereInput