Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update report #19

Merged
merged 8 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye

# Update and install system dependencies
RUN apt-get update && apt-get install -y \
asciidoctor \
graphviz \
openjdk-17-jdk \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install Asciidoctor PDF and Asciidoctor Diagram
RUN gem install asciidoctor-pdf --pre asciidoctor-diagram coderay
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
"dockerFile": "Dockerfile",
"context": "..",
"customizations": {
"vscode": {
"extensions": [
Expand Down
5 changes: 2 additions & 3 deletions .gcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# below:
.git
.gitignore
.github/

# Node.js dependencies:
node_modules/
Expand All @@ -33,9 +34,7 @@ Dockerfile

# Exclude local development environment files
.env
.env.local
.env.development
.env.test


# Exclude TypeScript source maps and other build artifacts
*.map
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
}
],
"cSpell.words": [
"enduml",
"hardbreaks",
"nessicarily",
"openapi"
"Nonfunctional",
"openapi",
"Pikho",
"Serhiy",
"startuml"
]
}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Scitt Inspired Transparency Service
## Abstract
This repository contains the code for my final year project at Birkbeck university. The project is inspired emerging ecosystem of transparency and trust services based on the IETF SCITT standard.
It serves as a demonstration of how I can develop the service in typescript and deploy it to the cloud, rather than an implementation of the SCITT standard itself (which at the time of writing is still in draft form).

## Running the project

The project in its current state it self contained and tests can be run locally.

1. Make sure Node.js is installed
2. Clone the repository
3. inside the project directory run `npm install`
4. run `npm test` to run the tests - This will use jest and mongodb-memory-server to run the tests
5. run `npm start` to start the service - you will need to provide a valid mongodb connection string in the .env file


21 changes: 0 additions & 21 deletions openapi/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ openapi: 3.0.0
info:
title: Projects API
version: 1.0.0
tags:
- name: projectCollaborators_other
x-displayName: other
- name: projects_other
x-displayName: other
- name: events_other
x-displayName: other
paths:
/Projects:
post:
Expand All @@ -32,8 +25,6 @@ paths:
description: Validation error
'403':
description: JWT authentication required
tags:
- projects_other
get:
summary: View all projects
security:
Expand All @@ -49,8 +40,6 @@ paths:
$ref: './schemas/Response/ProjectResponse.yaml'
'403':
description: JWT authentication required
tags:
- projects_other
/Projects/{projectId}:
patch:
summary: Updating a project
Expand Down Expand Up @@ -82,8 +71,6 @@ paths:
description: JWT authentication required
'404':
description: Project ID not found
tags:
- projects_other
get:
summary: Project Overview
security:
Expand Down Expand Up @@ -115,8 +102,6 @@ paths:
description: JWT authentication required
'404':
description: Project ID not found
tags:
- projects_other
/Projects/{projectId}/events:
post:
summary: Create an event on a project
Expand Down Expand Up @@ -148,8 +133,6 @@ paths:
description: JWT authentication required
'404':
description: Project ID not found
tags:
- events_other
get:
summary: View all Events on a project
security:
Expand All @@ -174,8 +157,6 @@ paths:
description: JWT authentication required
'404':
description: Project ID not found
tags:
- events_other
/Projects/{projectId}/events/{eventId}:
get:
summary: View Single Event
Expand Down Expand Up @@ -205,8 +186,6 @@ paths:
description: JWT authentication required
'404':
description: Project ID or Event ID not found
tags:
- events_other
components:
securitySchemes:
jwtAuth:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"test": "jest",
"generate": "npx openapi-typescript",
"report": "asciidoctor-pdf -r asciidoctor-diagram -linkcss report/pikho-serhiy-13108607.adoc ",
"build": "npx tsc",
"start": "node ./build/app/server.js",
"dev": "concurrently \"npx tsc --watch\" \"nodemon --inspect -q ./build/app/server.js\"",
Expand Down
Binary file added report/images/Pull-requests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/cd-deploy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/ci-tests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/commission-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/coverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/express-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/express-validator-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/github-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/middleware-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/mongoose-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/open-api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/test-run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/images/title-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,138 changes: 1,138 additions & 0 deletions report/pikho-serhiy-13108607.adoc

Large diffs are not rendered by default.

Binary file added report/pikho-serhiy-13108607.pdf
Binary file not shown.
Loading
Loading