Skip to main content

Development environment

Prerequisites#

You need docker, docker-compose, and node 12+.

1. Clone the repository#

git clone https://github.com/CitizenLabDotCo/citizenlab

2. Copy the provided example .env files#

cp .env-front.example .env-front
cp .env-back.example .env-back

Make modifications if required.

3. Build and launch#

Go to the root of the repository and start the back-end and services with :

docker-compose build
docker-compose run web rake db:create
docker-compose run web rake db:reset
docker-compose up

Open a new terminal and start the front-end with :

cd front
npm i
npm start