-
Notifications
You must be signed in to change notification settings - Fork 1
Getting started
This guide helps you get started running and interacting with a local development server and tests.
See also Bloom's setup wiki.
-
Install git on your machine.
-
Clone the repository.
Run this in your terminal (and/or refer to this guide):
git clone [email protected]:CityOfDetroit/bloom.git
-
Decide whether to use the Docker containers to manage postgres and redis or have those services installed directly on your machine.
Ensure that both services are running locally before proceeding.
-
Add this line to your
~/.bashrc
file for authentication to the postgres container as the correct user:export PGUSER=postgres
-
Navigate to the
bloom
directory that you created when you cloned the repo and run the following:docker-compose up redis postgres
-
You should see some output indicating that the containers have successfully started.
-
If you wish to stop running the services, you can Ctl-C to kill the processes.
-
If you wish to run the containers in the background and not need to keep the terminal open, kill the previous containers and run:
docker-compose up -d redis postgres
-
-
Install
npm
andnode
.- At the time of editing, this project requires Node 14.
- For linux machines, install the node package manager using apt:
sudo apt-get install npm sudo npm install -g npm
- If
node --version
returns anything other than 14, you'll need to installnvm
or another way to manage node versions. - Follow the instructions for installing and configuring
nvm
to use Node 14
-
Install
yarn
.- Install
yarn
globally by using:
sudo npm install -g yarn
- Although you could install it locally instead of globally by
- Install
-
Run
yarn install:all
, which will runyarn install
at both the top level and inbackend/core
.