-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into frontend/enhancement/error_pages
- Loading branch information
Showing
82 changed files
with
4,235 additions
and
1,269 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,22 @@ | ||
name: UGent-3-backend-linter | ||
run-name: ${{ github.actor }} is running backend linter 🚀 | ||
on: | ||
pull_request: | ||
paths: | ||
- 'backend/**' | ||
jobs: | ||
Backend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
|
||
- name: Run linting | ||
working-directory: ./backend | ||
run: find . -type f -name "*.py" | xargs pylint | ||
|
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,30 @@ | ||
name: UGent-3-frontend-linter | ||
run-name: ${{ github.actor }} is running frontend linter 🚀 | ||
on: | ||
pull_request: | ||
paths: | ||
- 'frontend/**' | ||
jobs: | ||
Frontend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
working-directory: ./frontend | ||
run: npm i eslint | ||
|
||
- name: Run linting | ||
working-directory: ./frontend | ||
run: npm run lint | ||
|
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,27 @@ | ||
name: UGent-3-backend-test | ||
run-name: ${{ github.actor }} is running backend tests 🚀 | ||
on: | ||
pull_request: | ||
paths: | ||
- 'backend/**' | ||
jobs: | ||
Backend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
working-directory: ./backend | ||
run: pip3 install -r requirements.txt && pip3 install -r dev-requirements.txt | ||
|
||
- name: Running tests | ||
working-directory: ./backend | ||
run: bash ./run_tests.sh | ||
|
||
|
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,38 @@ | ||
name: UGent-3-frontend-test | ||
run-name: ${{ github.actor }} is running frontend tests 🚀 | ||
on: | ||
pull_request: | ||
paths: | ||
- 'frontend/**' | ||
jobs: | ||
Frontend-tests: | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
working-directory: ./frontend | ||
run: npm ci | ||
|
||
- name: Build | ||
working-directory: ./frontend | ||
run: npm run build | ||
|
||
- name: Preview Web App | ||
working-directory: ./frontend | ||
run: npm run preview & | ||
|
||
- name: Running tests | ||
working-directory: ./frontend | ||
run: npm test | ||
|
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
# UGent-3 | ||
# UGent-3 project peristerónas | ||
![tests](https://github.com/SELab-2/UGent-3/actions/workflows/ci-test-frontend.yaml/badge.svg?branch=development) | ||
![linter](https://github.com/SELab-2/UGent-3/actions/workflows/ci-linter-frontend.yaml/badge.svg?branch=development) | ||
![tests](https://github.com/SELab-2/UGent-3/actions/workflows/ci-test-backend.yaml/badge.svg?branch=development) | ||
![linter](https://github.com/SELab-2/UGent-3/actions/workflows/ci-linter-backend.yaml/badge.svg?branch=development) | ||
## Introduction | ||
Project peristerónas was created to aid both teachers and students in achieving a | ||
clear overview of deadlines and projects that need to be submitted. | ||
|
||
There's a separate functionality depending on if you're logged in as a teacher or as a student. | ||
For students the main functionality is to have a user-friendly interface to submit projects and check the correctness of their submissions. | ||
|
||
When a teacher is logged in they can get an overview of the projects he assigned and check how many students have already | ||
handed in a correct solution for example. It's also possible to edit the project and to grade projects in peristerónas' interface. | ||
## Usage | ||
### Frontend | ||
For the developer instructions of the frontend please refer to the [frontend readme](frontend/README.md) | ||
where clear instructions can be found for usage, test cases, deployment and development. | ||
### Backend | ||
For the developer instructions of the backend please refer to the [backend readme](backend/README.md) | ||
where clear instructions can be found for usage, test cases, deployment and development. |
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,9 @@ | ||
FROM python:3.9 | ||
RUN mkdir /auth-app | ||
WORKDIR /auth-app | ||
ADD ./test_auth_server /auth-app/ | ||
COPY auth_requirements.txt /auth-app/requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
COPY . /auth-app | ||
ENTRYPOINT ["python"] | ||
CMD ["__main__.py"] |
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,4 @@ | ||
flask~=3.0.2 | ||
flask-restful | ||
python-dotenv~=1.0.1 | ||
psycopg2-binary |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,26 @@ | ||
{ | ||
description = "Python pip DevShell"; | ||
|
||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | ||
|
||
outputs = { self, nixpkgs }: let | ||
systems = [ "x86_64-linux" ]; | ||
forAllSystems = function: nixpkgs.lib.genAttrs systems (system: function { | ||
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; | ||
}); | ||
in { | ||
devShells = forAllSystems ({ pkgs }: { | ||
default = (pkgs.buildFHSUserEnv { | ||
name = "pip-zone"; | ||
targetPkgs = pkgs: with pkgs; [ | ||
python311Full | ||
python311Packages.pip | ||
|
||
postgresql | ||
dbeaver | ||
]; | ||
runScript = "zsh || bash"; | ||
}).env; | ||
}); | ||
}; | ||
} |
Oops, something went wrong.