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

Quickstart

Molokai edited this page Jan 20, 2019 · 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

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:

Windows:

all-build.cmd

all-up.cmd

Linux/Mac:

./all-build.sh

./all-up.sh

Note: all-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 all-build followed by all-up for the code to be reflected in the runtime environment.

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

You can see the docker containers by running

docker ps

Shutting down cbs

The docker containers will run until they are stopped.

Windows: all-down.cmd

Mac/Linux: all-down.sh

Shortcut to pull latest code, build and deploy (Mac/Linux)

git pull && ./all-build.sh && ./all-up.sh

Exploring CBS


Next steps

  • Learn more about CBS on the project website
  • [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