Skip to content

Commit

Permalink
Merge pull request #9 from bcgov/feature/assign
Browse files Browse the repository at this point in the history
Assign a user to submission
  • Loading branch information
norrisng-bc authored Dec 21, 2023
2 parents 4195f0c + 848f016 commit 900fee1
Show file tree
Hide file tree
Showing 53 changed files with 1,120 additions and 440 deletions.
6 changes: 0 additions & 6 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ plugins:
enabled: false
nodesecurity:
enabled: true
sass-lint:
enabled: true
rules:
nesting-depth:
- 2
- max-depth: 5
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Maintainability](https://api.codeclimate.com/v1/badges/77078c9bd93bd99d5840/maintainability)](https://codeclimate.com/github/bcgov/nr-permitconnect-navigator-service/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/77078c9bd93bd99d5840/test_coverage)](https://codeclimate.com/github/bcgov/nr-permitconnect-navigator-service/test_coverage)

A clean Vue 3 frontend & backend scaffold example
NR PermitConnect Navigator Service

To learn more about the **Common Services** available visit the [Common Services Showcase](https://bcgov.github.io/common-service-showcase/) page.

Expand All @@ -21,6 +21,8 @@ app/ - Application Root
├── src/ - Node.js web application
│ ├── components/ - Components Layer
│ ├── controllers/ - Controller Layer
│ ├── db/ - Database Layer
│ ├── interfaces/ - Typescript interface definitions
│ ├── middleware/ - Middleware Layer
│ ├── routes/ - Routes Layer
│ ├── services/ - Services Layer
Expand All @@ -39,7 +41,7 @@ frontend/ - Frontend Root
│ ├── types/ - Typescript type definitions
│ ├── utils/ - Utility components
│ └── views/ - View Layer
└── tests/ - Node.js web application tests
└── tests/ - Vitest web application tests
CODE-OF-CONDUCT.md - Code of Conduct
COMPLIANCE.yaml - BCGov PIA/STRA compliance status
CONTRIBUTING.md - Contributing Guidelines
Expand All @@ -50,18 +52,23 @@ SECURITY.md - Security Policy and Reporting

## Documentation

- [Application Readme](frontend/README.md)
- [Application Readme](app/README.md)
- [Frontend Readme](frontend/README.md)
- [Product Roadmap](https://github.com/bcgov/nr-permitconnect-navigator-service/wiki/Product-Roadmap)
- [Product Wiki](https://github.com/bcgov/nr-permitconnect-navigator-service/wiki)
- [Security Reporting](SECURITY.md)

## Quick Start Dev Guide

You can quickly run this application in development mode after cloning by opening two terminal windows and running the following commands (assuming you have already set up local configuration as well). Refer to the [Application Readme](app/README.md) and [Frontend Readme](app/frontend/README.md) for more details.
You can quickly run this application in development mode after cloning by opening two terminal windows and running the following commands (assuming you have already set up local configuration as well). Refer to the [Application Readme](app/README.md) and [Frontend Readme](/frontend/README.md) for more details.

- Create `.env` in the root directory with the following
- `DATABASE_URL="your_connection_string"`

```
cd app
npm i
npm run prisma:migrate
npm run serve
```

Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security Policies and Procedures

This document outlines security procedures and general policies for the NR Permitting Navigator Service
This document outlines security procedures and general policies for the NR PermitConnect Navigator Service
project.

- [Supported Versions](#supported-versions)
Expand All @@ -10,7 +10,7 @@ project.

## Supported Versions

At this time, only the latest version of NR Permitting Navigator Service is supported.
At this time, only the latest version of NR PermitConnect Navigator Service is supported.

| Version | Supported |
| ------- | ------------------ |
Expand All @@ -19,8 +19,8 @@ At this time, only the latest version of NR Permitting Navigator Service is supp

## Reporting a Bug

The `CSS` team and community take all security bugs in `NR Permitting Navigator Service` seriously.
Thank you for improving the security of `NR Permitting Navigator Service`. We appreciate your efforts and
The `CSS` team and community take all security bugs in `NR PermitConnect Navigator Service` seriously.
Thank you for improving the security of `NR PermitConnect Navigator Service`. We appreciate your efforts and
responsible disclosure and will make every effort to acknowledge your
contributions.

Expand Down
13 changes: 12 additions & 1 deletion app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ app.use(compression());
app.use(cors(DEFAULTCORS));
app.use(express.json({ limit: config.get('server.bodyLimit') }));
app.use(express.urlencoded({ extended: true }));
app.use(helmet());
app.use(
helmet({
contentSecurityPolicy: {
directives: {
'default-src': [
"'self'", // eslint-disable-line
new URL(config.get('frontend.oidc.authority')).origin
]
}
}
})
);

// Skip if running tests
if (process.env.NODE_ENV !== 'test') {
Expand Down
Loading

0 comments on commit 900fee1

Please sign in to comment.