Skip to content

Setting up DEV environment

eduard valera i zorita edited this page Sep 19, 2018 · 2 revisions

1. Install Docker Compose

  1. First, install Docker CE: Get Docker CE for Ubuntu.

  2. Now you're good to go and install Docker Compose: Install Docker Compose.

2. Clone repository

Clone the repository:

git clone https://github.com/palicode/nucleotid-back

3. Define secrets

Keys, usernames and passwords must be defined in info/. Permissions must be set to 600 for all files in info/ once they contain sensitive information. Docker automatically passes the values through environment variables to the services.

4. Add hosts

Add the following hosts to your /etc/hosts file:

192.168.100.2 nucleotid-dev.com
192.168.100.3 nucleotid-dev-db

This is required to match the Google OAUTH2 return URL.

5. Run services

Run Docker compose:

npm run docker