Skip to content

vuttr-app/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VUTTR

A front-end web application for tools management, like described at.

Created by vue-cli 3.

The Vue.js version used can be watched at package.json file in app folder.

Beyond app folder, there are 2 (two) submodules:

  1. api: embeds the source available at. It servers as application backend since it is a acceptance criteria. Therefore, it was deployed in an environment mounted on heroku at.
  2. e2e: As the name suggests, it saves settings needed to run end-to-end tests for the application. It uses CucumberJS e Nightwatch-API.

Development

It is need to have docker-compose, version 1.17.0+, that supports 3.4 version configuration file.

Up the environment

docker-compose -f dev.yml up -d

Running unit tests in watch mode

docker-compose -f dev.yml exec app /bin/sh -c 'yarn test:unit --watchAll'

Running e2e tests (firefox)

docker-compose -f dev.yml exec e2e /bin/sh -c 'npm run cucumber'

Running e2e tests (chrome)

docker-compose -f dev.yml exec e2e /bin/sh -c 'browser=chrome npm run cucumber'

Accessing app by browser

If you want to use the application while developing (for some visual adjustment, for example), access http://localhost:4300.

Restarting api database

If you want to use a different data mass, it is just create/replace api/.db.json file. There is a sample original file, api/db.json.

Deploying

Once the demand is finished, in the appropriate branch, just merge it into the master branch and push it to the remote repository. That action will trigger a new build on [travisci. That action will trigger a new build at Travis-CI, submitting the code to lint tests, unit tests and e2e tests and, on success, it will publish the new version on. It is possible to confirm that new version was published watching the Travis-CI build number in the title of the main page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published