Skip to content

dfo-osdt/osp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFO Open Science Portal

A web-based application to promote open science and track science publications within Fisheries and Oceans Canada.

Contribution Guidelines

For now, we'll use spatie.be's excellent guidelines. Additional guidelines will be added here as we progress.

Built With

This repo has both the front end and backend code. The front end is a SPA that consumes the API backend.

Front-end Stack (Single Page Application)

  • TypeScript
  • Vue.js (TS with Composition API script setup)
  • Vue-i18n (app supports en-CA and fr-CA, with vite-plugin-vue-i18n, globalInjection: true)
  • Vue-Router (SPA routing)
  • Pinia (State management)
  • Quasar (Vite Plugin flavour - Vue.js framework component library)

Some helper libraries of note here:

Back-end Stack

Contributions

All changes must be done via a PR to the main branch. PR should be descriptive and provide reference to any issues as required.

For commits, messages, use Conventional Commits

The commit message should be structured as follows:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Commit Types

[
  'build',
  'chore',
  'ci',
  'docs',
  'feat',
  'fix',
  'perf',
  'refactor',
  'revert',
  'style',
  'test'
]

Running Tests Locally

Backend Tests

php artisan test

Frontend Tests

We use Cypress for the front-end E2E tests. It must run with the env.ci environment.

Before starting the test, start the dev server. For the frontend, you can either use pnpnm dev or pnmp build. In most cases, dev is better as changes to the code can instantently be tested again.

pnpm dev
php artisan server --env=ci

Once the local server is up and running, you can launch Cypress with pnpm cy:open or just run the tests with pnpm cy:run

If using WSL, you will need to follow this guide first.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •