Skip to main content

New Mac Install

Setup docker

Download docker - https://www.docker.com/products/docker-desktop/

Get docker desktop env is setup Launch Click the settings icon

Screen Shot 2022-07-28 at 10.25.54 PM.png

Verify you have correct resources allocated.

I have 8GB ram, so I have set men to be 5GB, recommendation to not set it lower than 4BG. If you have 16GB, recommend to set men to 8GB then Resources Atvarced.png Next select docker engine and change experimental from false to true Docker Engine.png Finally, select Experimental features and check both the options Experimental Features.png

Unless you just installed docker, ensure it is the latest verion Software Updates.png Then click Apply and restart


Setup command line tools

Open terminal and type git

Screen Shot 2022-07-28 at 9.39.08 PM.png

Screen Shot 2022-07-28 at 9.43.34 PM.png



Start setting up your powr codebase.

Open terminal

Run: git clone https://gitlab.com/powr/powr-cli.git ~/dev/cli && cd ~/dev/cli && make install

You will see this prompt: Enter your GitHub usernameHere is my example: https://github.com/Praneeta Screen Shot 2022-07-28 at 10.13.44 PM.png

Then it will ask for your GitHub token: Go generate it https://github.com/settings/tokens

Add a name that you will easily remember like POWR computerSet expiration to 1 year - ideally shorter

Select following scopes: repo, workflow, write:packages, delete:packages Expiration.png For the very first time you run your dev env in POWR - you will need to type docker-compose up because docker + node command doesn’t work well.

NOTE: If you are running M1 or arm64 machine, then run cd ~/dev/powr/ && make

If things are going well, you’ll see the tables being created and some migrations running and the if you click back and forth between volumes, size of powr_dbdata will be increasing - here it’s 8kb to begin with Screen Shot 2022-07-28 at 10.35.43 PM.png It will get to around 1.3GB and keep growing when it’s successful Screen Shot 2022-07-28 at 10.38.16 PM.png If you get the following error in your powr web Screen Shot 2022-07-18 at 10.27.27 AM.png can you stop docker-compose  Then you should make sure that local Postgres is stopped, along with local redis with: brew services stop postresql && brew services stop redis and Then run powr dev:up Now make sure that db volume is roughly 7Gb, and if not, then run make command again in the repo root ~/dev/powr. When all this runs successful, run powr dev:up

After all being successfull and you're able to reach localhost:3000 in your browser. You could then use powr dev:up command as it will faster bring up the project than make.