Skip to content

Commit

Permalink
Revert "pre-release 3 (#244)"
Browse files Browse the repository at this point in the history
This reverts commit a83dfcf.
  • Loading branch information
xerbalind committed May 23, 2024
1 parent a83dfcf commit 12334e6
Show file tree
Hide file tree
Showing 225 changed files with 2,451 additions and 14,509 deletions.
61 changes: 16 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,26 @@
# Apollo
# UGent-5

Apollo is an online submission platform where instructors can flexibly set requirements for
student submissions. These requirements can range from simple checks on the submitted
file structure to test scripts that run when a submission is made.
## Rolverdeling

Students quickly receive feedback on their submission, allowing them to know if it meets
the project requirements.

This repository hosts the web application's source code. To use Apollo, visit https://sel2-5.ugent.be.
| Rol | Verantwoordelijke |
| ------------- | ------------- |
| Groepsleider | Marieke Sinnaeve |
| Technische lead | Bram Reyniers |
| Systeembeheerder | Xander Bil |
| Customer Relations Officer | Pieter Janin |
| Frontendbeheerder | Mattis Cauwel |
| Backendbeheerder | Dries Huybens |
| Documentatiebeheerder | Pieter Janin |
| Testbeheerder | Michaël Boelaert |

## Wiki

Documentation, including a user manual for teachers, can be found in the
[Apollo wiki](https://github.com/SELab-2/UGent-5/wiki).

## For Developers
Informatie over de gebruikte technologieën, de gebruikershandleiding en meer kan je vinden in de [wiki](https://github.com/SELab-2/UGent-5/wiki).

Instructions for setting up the frontend development environment can be found
[here](frontend/README.md).
## Setup ontwikkelomgeving

Instructions for the backend are located [here](backend/README.md).
De instructies voor het opzetten van de ontwikkelomgeving van de frontend kan je [hier](frontend/README.md) vinden. De instructies voor de backend staan [hier](backend/REAMDE.md).

## API

Automated clients can interact with the web application via the [API](https://sel2-5.ugent.be/api/docs).

## Used tools and frameworks

### Database
- Database system: [PostgreSQL](https://www.postgresql.org/)
- Database migrations: [alembic](https://github.com/sqlalchemy/alembic).

### Backend
- Backend framework: [FastAPI](https://fastapi.tiangolo.com/)
- Database interface: [SQLAlchemy](https://www.sqlalchemy.org/)
- JSON-validation: [Pydantic](https://github.com/pydantic/pydantic)
- Test framework: [pytest](https://github.com/pytest-dev/pytest)

### Frontend
- Frontend framework: [Vue.js](https://vuejs.org/) (Composition API) + [TypeScript](https://www.typescriptlang.org/)
- Component library: [Vuetify](https://dev.vuetifyjs.com/en/)
- Test framework: [Vitest](https://vitest.dev/)

## The team

| | |
|------------------|---------------------------------------------------|
| Xander Bil | System Administrator |
| Michaël Boelaert | Test Manager |
| Mattis Cauwel | Frontend Manager |
| Dries Huybens | Backend Manager |
| Pieter Janin | Customer Relations Officer, Documentation Manager |
| Bram Reyniers | Technical Lead |
| Marieke Sinnaeve | Team Lead |
Geautomatiseerde clients kunnen interageren met de webapplicatie via de [API](https://sel2-5.ugent.be/api/docs).
4 changes: 1 addition & 3 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

```sh
# Create a python virtual environment
python3.12 -m venv venv
python -m venv venv
# Activate the environment
source venv/bin/activate
# Install dependencies
Expand Down Expand Up @@ -71,8 +71,6 @@ DATABASE_URI="postgresql://username:password@localhost:5432/dbname"
alembic upgrade head
```

You can find more info about alembic [here](alembic/README.md).

#### Managing the database
```sh
# Stop the database container
Expand Down
1 change: 1 addition & 0 deletions backend/alembic/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Generic single-database configuration.
43 changes: 0 additions & 43 deletions backend/alembic/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions backend/alembic/versions/18fb90307213_project_requirements_fix.py

This file was deleted.

31 changes: 0 additions & 31 deletions backend/alembic/versions/566f33fb161f_add_user_surname.py

This file was deleted.

44 changes: 0 additions & 44 deletions backend/alembic/versions/937c04aa37a1_add_group_num_column.py

This file was deleted.

This file was deleted.

6 changes: 1 addition & 5 deletions backend/src/auth/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,15 @@ async def token(
if not user or not attributes:
raise UnAuthenticated(detail="Invalid CAS ticket")
# Create user if not exists
resolved_user = await user_service.get_by_id(db, attributes["uid"])
if not resolved_user:
if not await user_service.get_by_id(db, attributes["uid"]):
await user_service.create_user(
db,
UserCreate(
given_name=attributes["givenname"],
surname=attributes["surname"],
uid=attributes["uid"],
mail=attributes["mail"],
),
)
elif resolved_user.surname == 'SURNAME_DEFAULT':
resolved_user.surname = attributes["surname"]

# Create JWT token
jwt_token = create_jwt_token(attributes["uid"])
Expand Down
20 changes: 0 additions & 20 deletions backend/src/docker_tests/dependencies.py

This file was deleted.

Loading

0 comments on commit 12334e6

Please sign in to comment.