This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from SELab-2/development
Milestone 3
- Loading branch information
Showing
208 changed files
with
8,552 additions
and
2,772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/frontend" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "pip" | ||
directory: "/backend" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: frontend-tests | ||
run-name: frontend-tests | ||
on: [push] | ||
jobs: | ||
Frontend-tests: | ||
runs-on: self-hosted | ||
environment: vue tests | ||
strategy: | ||
max-parallel: 4 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
- name: Empty EchoFetch directory | ||
run: | | ||
rm -rf EchoFetch | ||
working-directory: ./frontend/src/api | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Setup EchoFetch | ||
run: | | ||
npm install | ||
npm run build | ||
working-directory: ./frontend/src/api/EchoFetch | ||
- name: Install Dependencies | ||
run: | | ||
npm install --force | ||
working-directory: ./frontend | ||
- name: Create env file | ||
run: | | ||
echo "${{ vars.ENV }}" > ./.env.local | ||
working-directory: ./frontend | ||
- name: Run Tests | ||
run: | | ||
npm run test:unit | ||
working-directory: ./frontend | ||
|
||
Frontend-linter: | ||
runs-on: self-hosted | ||
environment: vue tests | ||
strategy: | ||
max-parallel: 4 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
- name: Empty EchoFetch directory | ||
run: | | ||
rm -rf EchoFetch | ||
working-directory: ./frontend/src/api | ||
- name: Install Dependencies | ||
run: | | ||
npm install --force | ||
npm i -D @vue/cli-plugin-eslint @vue/eslint-config-typescript --force | ||
working-directory: ./frontend | ||
- name: Run Linter | ||
run: | | ||
npm run lint | ||
working-directory: ./frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,3 +79,6 @@ fabric.properties | |
|
||
# environment map | ||
env | ||
|
||
# coverage niet wordt meegepusht | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,44 @@ | ||
# Dr-Trottoir-5 | ||
# Dr-Trottoir-5 | ||
|
||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) | ||
|
||
> Een webapp gemaakt voor [Dr-Trottoir](https://drtrottoir.be/) om hun werk te structureren en automatiseren. | ||
## Table of Contents | ||
|
||
- [Features](#features) | ||
- [Technologiën](#technologies) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [License](#license) | ||
|
||
## Features | ||
|
||
- Nieuwe klanten en medewerkers toevoegen | ||
- Rondes tonen aan de medewerkers | ||
- Aanmaken/inplannen rondes | ||
- Uitvoeren van een ronde | ||
- Problemen tijdens uitvoeren terugsturen naar de klanten | ||
|
||
## Technologies | ||
|
||
De web app is gemaakt met deze technologiën | ||
|
||
- [Vue.js](https://vuejs.org/) - Een progressief JavaScript-framework voor het bouwen van gebruikersinterfaces. | ||
- [Django](https://www.djangoproject.com/) - Een high-level Python webframework. | ||
- [Hugo Docsy](https://www.docsy.dev/) - Een Hugo-thema voor technische documentatiewebsites. | ||
|
||
|
||
## Installation | ||
|
||
- see the README.md files in the [frontend](frontend/README.md), [backend](backend/README.md) and [docs](docs/README.md) folders | ||
|
||
## Usage | ||
|
||
- see the README.md files in the [frontend](frontend/README.md), [backend](backend/README.md) and [docs](docs/README.md) folders | ||
|
||
|
||
## License | ||
|
||
This project is licensed under the [MIT License](LICENSE). You are free to use, modify, and distribute this project in accordance with the terms of the license. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ DB_PASSWORD=your_password | |
DB_HOST=localhost | ||
DB_PORT=5432 | ||
EMAIL=[email protected] | ||
EMAIL_PASSWORD=my_app_password | ||
EMAIL_PASSWORD=my_app_password | ||
DEBUG_MODE=True | ||
SECRET_KEY=django-insecure-mz0gymvj@n5wl2p0yau(vj0e3jdx_wok78+ead*=p4)$w)g5(z | ||
SECURE_COOKIES=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.conf import settings | ||
from django.views.static import serve | ||
from rest_framework.permissions import IsAuthenticated | ||
from rest_framework.permissions import IsAuthenticatedOrReadOnly | ||
from rest_framework.views import APIView | ||
|
||
|
||
class MediaView(APIView): | ||
permission_classes = [IsAuthenticated] | ||
permission_classes = [IsAuthenticatedOrReadOnly] | ||
|
||
def get(self, request, path): | ||
return serve(request, path, document_root=settings.MEDIA_ROOT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.