EngineeringWiki
  • Introduction
  • Top level Overview of the application
  • FAQs
  • Back End
    • Agent Pipeline
    • Mention Pipeline
    • Profile Pipeline
    • Errors
    • Overview of the Mention/Profile/Cluster Process
    • Adding a New Service
    • Activity and Status Tracking
  • Setup
    • Overview
    • How to Setup Your Local Machine
    • Setup - Cloud Machine
    • Infrastructure
    • Docker
    • Bash Commands
    • Setting up front end in Ubuntu 16.04 desktop
  • Gems/Libraries
    • Bax
    • Creating fixtures for Unit Tests
    • Audienti-Retriever
    • Scour
    • Haystack
    • Audienti-Indexer
    • Audienti-Api
    • Handler
    • Blackbook
    • Allusion
  • Code
    • Multi-step Modal Wizard
    • Structure
    • Audienti DataTables
    • Javascript
      • Passing Props From Root
      • Looping in JS
      • Binding Actions to App
      • CSSTransitionGroup
      • Code Best Practices
      • Reducer Updating an Array with Item in Middle
      • Organizing Javascript
      • Filter Array by Id
    • Design Language
  • Working
    • PostgresSQL
    • S3
    • Terminology
    • Interview Tests
    • Application Descriptions
    • Best Practices
      • Code Organization
      • Code Documentation (using Yard)
      • Git Workflow
      • Tasks and Queues
      • Working in Backend
    • Profiles & Enrichment
      • Profile ID Rules
  • Management
    • API Management
    • Bastion
    • Splash Proxy
    • Rancher
      • OpenVPN Server
      • Traefik Reverse Proxy
  • Teams & Interviews
    • Interview Questions
  • Culture
    • What Makes a World Class Engineer
  • Situational Statuses
    • 2017-11-03
    • 2018-01-09
  • Operations
Powered by GitBook
On this page
  • Introduction
  • Useful URL
  • Installation steps
  • Install Docker
  • Install Node and NPM
  • Install yarn
  • Download the react app
  • Update the environment file
  • Update your local host file
  • Launch the app through yarn
  1. Setup

Setting up front end in Ubuntu 16.04 desktop

PreviousBash CommandsNextGems/Libraries

Last updated 7 years ago

Introduction

Install of Front end react app on Ubuntu 16.04 could be tricky. After few struggle, I could able to set up everything. Through this document, I am trying to give a step by step process to do it. There are certain challenges that I shall mention and how to avoid the same.

Useful URL

Front end react app can be downloaded /cloned from .

Docker installation:

  • Prerequisite:

  • Installation

Installation steps

Install Docker

Follow the instruction given on the above given URL. I have installed the following version of docker.

Install Node and NPM

Installing Nodejs 9:

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs

Note: npm is bundled with nodejs now.

Install yarn

  • On Debian or Ubuntu Linux, you can install Yarn via our Debian package repository. You will first need to configure the repository:

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

Then you can simply:

sudo apt-get update && sudo apt-get install yarn

Download the react app

Download the react app on a desired folder and extract it. Typical folder structure should look like this:

Update the environment file

Update the environment file with desired entries. (Get the entry from your manager). If you are doing it for the first time, you will find a file name called .env.sample. Please rename that as .env file.

Update your local host file

Update your local host with following entry:

127.0.0.1 www.omaengine.dev

Launch the app through yarn

Navigate to the folder and launch the application through yarn

cd ~
cd ~/Documents/Audienti/react-app-master
yarn start

Install nodejs and npm could be tricky. It is important that we should install the latest versions. Follow this URL for latest instructions:

This URL can be useful as well:

Follow the instruction from here to install yarn:

On Ubuntu 16.04 or below and Debian Stable, you will also need to configureto get a new enough version of Node.js.

https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
https://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm
https://yarnpkg.com/lang/en/docs/install/
the NodeSource repository
https://github.com/omalab/react-app
https://docs.docker.com/install/linux/docker-ce/ubuntu/
https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce