Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update development setup guides [ci skip] (#9352)

Wieland Lindenthal4fa4c884c096
diff --git a/docs/development/development-environment-osx/README.md b/docs/development/development-environment-osx/README.md
index 7658ef1ea93..3a584749b83 100644
--- a/docs/development/development-environment-osx/README.md
+++ b/docs/development/development-environment-osx/README.md
@@ -17,7 +17,7 @@ We'll use [homebrew](https://brew.sh/) to install most of our requirements. Plea
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby. We always require the latest ruby versions, and you can check which version is required by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At the time of writing, this version is "2.6"
-**Install rbenv and ruby-build**
+### Install rbenv and ruby-build
rbenv is a ruby version manager that lets you quickly switch between ruby versions.
ruby-build is an addon to rbenv that installs ruby versions.
@@ -29,7 +29,7 @@ $ brew install rbenv ruby-build
$ rbenv init
```
-**Installing ruby-2.7**
+### Installing ruby-2.7
With both installed, we can now install the actual ruby version 2.7. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `2.7.3`, which we also require.
@@ -84,7 +84,7 @@ $ createdb -O openproject openproject_test
We will install the latest LTS version of Node.js via [nodenv](https://github.com/nodenv/nodenv). This is basically the same steps as for rbenv:
-**Install nodenv and node-build**
+### Install nodenv and node-build
```bash
# Install
@@ -93,15 +93,21 @@ $ brew install nodenv node-build
$ nodenv init
```
-**Install latest LTS node version**
+### Install latest LTS node version
You can find the latest LTS version here: https://nodejs.org/en/download/
-At the time of writing this is v14.16.1. Install and activate it with:
+At the time of writing this is v14.17.0. Install and activate it with:
```bash
-nodenv install 14.16.0
-nodenv global 14.16.0
+nodenv install 14.17.0
+nodenv global 14.17.0
+```
+
+### Update NPM to the latest version
+
+```bash
+npm install npm@latest -g
```
## Verify your installation
@@ -116,10 +122,10 @@ $ bundler --version
Bundler version 2.1.4
node --version
-v14.16.1
+v14.17.0
npm --version
-7.11.2
+7.15.1
```
# Install OpenProject
@@ -128,13 +134,6 @@ npm --version
# Download the repository
git clone https://github.com/opf/openproject.git
cd openproject
-
-# Install
-# - gem dependencies (If you get errors here, you're likely missing a development dependency for your distribution)
-# - node_modules
-# - link plugin frontend modules
-# - and export frontend local files
-bin/setup_dev
```
Note that we have checked out the `dev` branch of the OpenProject repository. Development in OpenProject happens in the `dev` branch (there is no `master` branch).
@@ -168,18 +167,24 @@ test:
database: openproject_test
```
-
-
## Finish the Installation of OpenProject
-Now, run the following tasks to migrate and seed the dev database, and prepare the test setup for running tests locally.
+Install code dependencies, link plugin modules and export translation files.
+- gem dependencies (If you get errors here, you're likely missing a development dependency for your distribution)
+- node_modules
+- link plugin frontend modules
+- and export frontend localization files
```bash
-RAILS_ENV=development bin/rails db:create db:migrate
-RAILS_ENV=development bin/rails db:seed db:test:prepare
+bin/setup_dev
```
+Now, run the following tasks to migrate and seed the dev database, and prepare the test setup for running tests locally.
+```bash
+RAILS_ENV=development bin/rails db:seed
+```
+1
## Run OpenProject through foreman
You can run all required workers of OpenProject through `foreman`, which combines them in a single tab. This is useful for starting out,
@@ -208,7 +213,7 @@ You can access the application with the admin-account having the following crede
To run OpenProject manually, you need to run the rails server and the webpack frontend bundler to:
-**Rails web server**
+### Rails web server
```bash
RAILS_ENV=development bin/rails server
@@ -216,7 +221,7 @@ RAILS_ENV=development bin/rails server
This will start the development server on port `3000` by default.
-**Angular frontend**
+### Angular frontend
To run the frontend server, please run
diff --git a/docs/development/development-environment-ubuntu/README.md b/docs/development/development-environment-ubuntu/README.md
index cf4f70f2ea3..68e4b33056e 100644
--- a/docs/development/development-environment-ubuntu/README.md
+++ b/docs/development/development-environment-ubuntu/README.md
@@ -24,7 +24,7 @@ sudo apt-get install git curl build-essential zlib1g-dev libyaml-dev libssl-dev
Use [rbenv](https://github.com/rbenv/rbenv) and [ruby-build](https://github.com/rbenv/ruby-build#readme) to install Ruby. We always require the latest ruby versions, and you can check which version is required by [checking the Gemfile](https://github.com/opf/openproject/blob/dev/Gemfile#L31) for the `ruby "~> X.Y"` statement. At the time of writing, this version is "2.7"
-**Install rbenv and ruby-build**
+### Install rbenv and ruby-build
rbenv is a ruby version manager that lets you quickly switch between ruby versions.
ruby-build is an addon to rbenv that installs ruby versions.
@@ -43,7 +43,7 @@ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```
-**Installing ruby-build**
+### Installing ruby-build
ruby-build is an addon to rbenv that installs ruby versions
@@ -51,7 +51,7 @@ ruby-build is an addon to rbenv that installs ruby versions
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
```
-**Installing ruby-2.7**
+### Installing ruby-2.7
With both installed, we can now install the actual ruby version 2.7. You can check available ruby versions with `rbenv install --list`.
At the time of this writing, the latest stable version is `2.7.3`, which we also require.
@@ -109,7 +109,7 @@ Now, create the database `openproject_dev` and `openproject_test` owned by the p
We will install the latest LTS version of Node.js via [nodenv](https://github.com/nodenv/nodenv). This is basically the same steps as for rbenv:
-**Install nodenv**
+### Install nodenv
```bash
# Install nodenv
@@ -125,24 +125,30 @@ echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
```
-**Install node-build**
+### Install node-build
```bash
git clone https://github.com/nodenv/node-build.git $(nodenv root)/plugins/node-build
```
-**Install latest LTS node version**
+### Install latest LTS node version
You can find the latest LTS version here: https://nodejs.org/en/download/
-At the time of writing this is v14.16.1 Install and activate it with:
+At the time of writing this is v14.17.0 Install and activate it with:
```bash
-nodenv install 14.16.1
-nodenv global 14.16.1
+nodenv install 14.17.0
+nodenv global 14.17.0
nodenv rehash
```
+### Update NPM to the latest version
+
+```bash
+npm install npm@latest -g
+```
+
## Verify your installation
You should now have an active ruby and node installation. Verify that it works with these commands.
@@ -158,7 +164,7 @@ node --version
v14.16.1
npm --version
-7.11.2
+7.15.1
```
# Install OpenProject
@@ -173,13 +179,6 @@ To do that, go to https://github.com/opf/openproject and press "Fork" on the upp
# If you want to create a pull request, replace the URL with your own fork as described above
git clone https://github.com/opf/openproject.git
cd openproject
-
-# Install
-# - gem dependencies (If you get errors here, you're likely missing a development dependency for your distribution)
-# - node_modules
-# - link plugin frontend modules
-# - and export frontend local files
-bin/setup_dev
```
Note that we have checked out the `dev` branch of the OpenProject repository. Development in OpenProject happens in the `dev` branch (there is no `master` branch).
@@ -215,13 +214,21 @@ test:
## Finish the Installation of OpenProject
-Now, run the following tasks to migrate and seed the dev database, and prepare the test setup for running tests locally.
+Install code dependencies, link plugin modules and export translation files.
+- gem dependencies (If you get errors here, you're likely missing a development dependency for your distribution)
+- node_modules
+- link plugin frontend modules
+- and export frontend localization files
```bash
-RAILS_ENV=development bin/rails db:migrate
-RAILS_ENV=development bin/rails db:seed
+bin/setup_dev
```
+Now, run the following tasks to seed the dev database, and prepare the test setup for running tests locally.
+
+```bash
+RAILS_ENV=development bin/rails db:seed
+```
## Run OpenProject through foreman
@@ -251,7 +258,7 @@ You can access the application with the admin-account having the following crede
To run OpenProject manually, you need to run the rails server and the webpack frontend bundler to:
-**Rails web server**
+### Rails web server
```bash
RAILS_ENV=development ./bin/rails server
@@ -259,7 +266,7 @@ RAILS_ENV=development ./bin/rails server
This will start the development server on port `3000` by default.
-**Angular frontend**
+### Angular frontend
To run the frontend server, please run