Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Quickstart

nton7 edited this page Dec 22, 2021 · 15 revisions

It is possible to download, build and run the entire CBS system under Docker. This can be done on Windows, Mac and Linux.

Note: Windows Home edition will not run docker. It is still possible to run MongoDB Community Server as well as the frontends and backends outside of docker.

Note II: It is not always necessary or even recommended to run the entire CBS system. Often a developer will only need to run the single Bounded Context they are currently working on. Jump to Development on a Bounded Context

git

Windows: https://git-scm.com/downloads

On windows you will also need to enable long file names by running the following command as an administrator:

git config --system core.longpaths true

linux (ubuntu): sudo apt install git

Mac (OSX 10.9 and above): git --version (and follow the prompts)

nodejs

Windows/Mac: https://nodejs.org/

linux sudo apt install nodejs

npm

npm install npm@latest -g

Typescript

npm install -g typescript

Angular

npm install -g @angular/cli@latest

docker

Windows: https://hub.docker.com/editions/community/docker-ce-desktop-windows

linux (ubuntu):

sudo apt install docker.io

sudo apt install docker-compose

Mac:

https://hub.docker.com/editions/community/docker-ce-desktop-mac

.net core 2.2 SDK

https://dotnet.microsoft.com/download/dotnet-core/2.2


Clone the CBS repository

git clone https://github.com/IFRCGo/cbs


Run docker compose

To start up the CBS app with all frontends, backends and MongoDB, all running as docker containers, from the cbs/Deploy/Compose/ folder, run:

docker-compose build

docker-compose up

Note: docker-compose up will build if build has not yet been done. The build can take 10 minutes or more.

Note II: If you make changes to code, you need to re-run build followed by up for the code to be reflected in the runtime environment.

The solution should now be available at http://localhost:8080/admin/

You can see the docker containers by running

docker ps

Shutting down cbs

The docker containers will run until they are stopped.

docker-compose down


Exploring CBS


Next steps

  • Learn more about CBS on the project website
  • Learn the terminology by reading about the CBS Ubiquitous language
  • [Set up your development environment]
  • Learn more about [UI development]
  • Learn more about [Backend development]
  • Learn more about the [Bounded contexts] in the system
  • Dive into the [doLittle architectural framework] in use
  • Look at the open github issues