Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

# Development

## Prerequisites

* Ruby ([rbenv](https://github.com/rbenv/rbenv) will pick up the correct version from the `.ruby_version` file)
* Postgres

## Setup

Clone Git submodules:

```bash
git submodule init
git submodule update
```

Install dependencies:

```bash
bundle install
yarn install
```

Create required Postgres user:

```bash
psql postgres -c "CREATE ROLE registry_test WITH LOGIN SUPERUSER PASSWORD 'registry_test' CREATEDB;"
```

The user must be SUPERUSER for Rails fixtures to work.

Setup databases:

```bash
bin/rails db:create
bin/rails db:schema:load
```

Start Rails:

```bash
bin/rails server
```

## Configuration

### External API's

External API's are disabled in development per default. Enable with `ALLOW_EXTERNAL_APIS=true bin/rails`.