Skip to content

Commit

Permalink
Add screenshots for Artemis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-glombik committed Oct 15, 2023
1 parent f6e54fc commit 27d1327
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions supporting_scripts/local-setup-quickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ Scripts in this folder help to configure and setup your first Artemis course to

`File > Project Structure > Facets > Add - Python` (press the plus and add a Python environment there,
make sure that you have configured the python interpreter)


![IntelliJ Python Facet Configuration](./images/facets-config.png)

If not added automatically by IntelliJ add a Module:
`File > Project Structure > Modules > Add - Python`

![IntelliJ Module Configuration](./images/module-config.png)

3. Configure the `Artemis.main` module for the run configuration of the run
configuration `Artemis (Server, LocalVC & LocalCI)`

`Run > Edit Configurations > Spring Boot > Artemis (Server, LocalVC & LocalCI) > -cp Artemis.main`

![IntelliJ Module Configuration](./images/localVC-localCI-classpathConfiguration.png)

_Tested on python 3.11.6, other versions might work as well._

## Usage
Expand All @@ -42,7 +50,7 @@ You can also execute the following scripts on their own (not needed if `create_c
#### Create users

Creates users 1-20 (students, tutors, editors, instructors - 5 for each group) and users needed for Cypress E2E
testing (100-104, 106)
testing (100-106)

```shell
python3 create_users.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def authenticate_all_generated_users():
This method logs in the users that are generated in Jira with the script for the Atlassian Setup:
See https://github.com/ls1intum/Artemis/blob/develop/docker/atlassian/atlassian-setup.sh
or from the script
or from the script "create_users.py"
"""
for user_index in range(1, 21):
user_details = get_user_details_by_index(user_index)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion supporting_scripts/local-setup-quickstart/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_user_details_by_index(user_index):
authorities = []
groups = []

if 1 <= user_index <= 5 or user_index in {100, 102, 104, 106}:
if 1 <= user_index <= 5 or user_index in {100, 102, 104, 105, 106}:
authorities = ["ROLE_USER"]
groups = ["students"]
elif 6 <= user_index <= 10 or user_index == 101:
Expand Down

0 comments on commit 27d1327

Please sign in to comment.