Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.37 KB

INSTALL.md

File metadata and controls

58 lines (43 loc) · 1.37 KB

Front-End install

Ubuntu 18.04

Requirements

sudo apt-get update
sudo apt-get dist-upgrade
sudo dpkg-reconfigure tzdata

sudo apt-get install apache2

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

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
sudo apt-get update && sudo apt-get install yarn

Certbot

Certbot is used to generate SSL certificates. See Certbot documentation for installation process.

Automated deploy

Based on Deploy a website to a remote server with Git push by @francoisromain

Command to deploy from local:

git remote add deploy ssh://<user>@<ip-address>:/srv/app/git/frontend.git
git push deploy

Run locally

  1. Copy the .env.example to .env
    cp .env.example .env
  2. Replace the MY_SECRET_MAPBOX_ACCESS_TOKEN value by your generated Mapbox access token
  3. Install the necessary package via npm or yarn
    npm install
    
    # or
    yarn install
  4. Run the sh!t
    npm run dev
    
    # or
    yarn dev

...