Skip to content

fga-eps-mds/2020.1-stay-safe-front-end

Repository files navigation

2020.1-stay-safe-front-end

Installation

Install nvm

Close the terminal and run the following command:

  • command -v nvm

It should print 'nvm' if the installation was successful

Install node with nvm

  • nvm install node

Install expo

  • npm install expo-cli --global

Possible problems

System limit for number of file watchers reached

  • echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

Usage

Start project

  • expo start

Run ESLint

  • npx eslint src/** --fix --no-error-on-unmatched-pattern

Run Sonarqube

$ docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
$ docker run -ti -v $(pwd):/usr/src --link sonarqube newtmitch/sonar-scanner -Dsonar.projectName="Frontend" -Dsonar.projectKey=frontend

Link to see the scans projects: http://localhost:9000/projects