Skip to content

carlosadiegosysdig/promcat-frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PromCat

last commit licence

Usage

This code requires a recent NodeJS version (check Dockerfile for exact version used) and it uses NuxtJS as Javascript framework.

ENV Vars

They are located in the .env file. They are injected on build time, not in runtime (beware for docker).

  • API_URL: The content API URL.
  • GOOGLE_ANALYTICS_ID: Google analytics id.
  • BASE_URL: Base url of the website. Used for SEO.

Commands

# install dependencies
$ npm install

# recreate dependencies for CI
$ npm ci

# start dev server with hot reload at localhost:3000
$ npm start

# run unit tests watching for changes since the last commit
$ npm run test # You can then press 'a' to run all tests and 'u' to update the snapshots

# run unit test with coverage
$ npm run test:unit:coverage

# run acceptance test
$ npm run test:e2e

# run acceptance test headless
$ npm run test:e2e:headless

# build for production and launch server
$ npm run build
$ npm run serve

# push disabling unit test check (husky)
$ git push --no-verify

Module dependencies can be fixed by:

rm -fr node_modules package-lock.json
npm install

Code style

We're following the default set of rules of eslint according to nuxt. Please use the .editorconfig to follow the indent style. If you are using Visual Studio Code you might want to add the following snippet to your settings.json (and disable autosave)

  "eslint.autoFixOnSave": true,
  "eslint.options": {
    "configFile": ".eslintrc.js"
  }

Contributing

Contributors are welcome!

About

Prometheus Catalog - Frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 69.8%
  • JavaScript 24.3%
  • SCSS 4.6%
  • Other 1.3%