-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
110 changed files
with
3,580 additions
and
1,837 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,7 @@ | ||
# Since text files will be used in a linux environment where LF is expected, git shouldn't change line endings to CRLF on windows machines | ||
* text=auto eol=lf | ||
|
||
# things that fail without this: | ||
# * bash autocompletion (.sh): -bash: /etc/bash_completion.d/manage_autocompletion.sh: line 8: syntax error near unexpected token `$'\r'' | ||
# * running python files: /usr/bin/env: ‘python3\r’: No such file or directory | ||
# Since that's a huge part of the code base, it doesn't really make sense to allow automatic EOL conversion for the rest of the files. |
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,3 +1,4 @@ | ||
[submodule "evap/static/bootstrap"] | ||
path = evap/static/bootstrap | ||
url = https://github.com/twbs/bootstrap.git | ||
shallow = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,33 +12,31 @@ EvaP is the course evaluation system used internally at Hasso Plattner Institute | |
For the documentation, please see our [wiki](https://github.com/e-valuation/EvaP/wiki). | ||
|
||
|
||
## Installation | ||
## Installation (for Development) | ||
|
||
The easiest setup using [Vagrant](https://www.vagrantup.com) is shown here. | ||
|
||
0. Install [git](https://git-scm.com/downloads), [Vagrant](https://www.vagrantup.com/downloads.html), and one of [VirtualBox](https://www.virtualbox.org/wiki/Downloads) (recommended) or [Docker](https://docs.docker.com/engine/install/) (for ARM systems). | ||
1. Install [git](https://git-scm.com/downloads), [Vagrant](https://www.vagrantup.com/downloads.html), and one of [VirtualBox](https://www.virtualbox.org/wiki/Downloads) (recommended) or [Docker](https://docs.docker.com/engine/install/) (for ARM systems). | ||
|
||
1. Fork the EvaP repository (using the Fork-button in the upper right corner on GitHub). | ||
2. Run the following commands on the command line to clone the repository, create the Vagrant VM and run the Django development server. | ||
* If you are familiar with the fork-based open source workflow, create a fork and clone that (using SSH if you prefer that). | ||
|
||
2. Windows users only (might not apply for the Linux subsystem): | ||
* Line endings: git's [`core.autocrlf` setting](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_autocrlf) has to be `false` or `input` so git does not convert line endings on checkout, because the code will be used in a Linux VM. We suggest using this command in Git Bash: | ||
* Windows users: We have observed [weird](https://www.github.com/git-for-windows/git/issues/4705) [behavior](https://www.github.com/git-for-windows/git/issues/4704) with SSH in Git Bash on Windows and thus recommend using PowerShell instead. | ||
|
||
```bash | ||
git config --global core.autocrlf input | ||
``` | ||
* To use Docker, replace `vagrant up` with `vagrant up --provider docker && vagrant provision`. | ||
|
||
3. Run the following commands on the command line to clone the repository, create the Vagrant VM and run the Django development server. | ||
To use Docker, replace `vagrant up` with `vagrant up --provider docker && vagrant provision`. | ||
```bash | ||
git clone --recurse-submodules https://github.com/<your_github_username>/EvaP.git | ||
git clone --recurse-submodules https://github.com/e-valuation/EvaP.git | ||
cd EvaP | ||
vagrant up | ||
vagrant ssh | ||
``` | ||
and, after the last command opened an SSH session in the development machine: | ||
```bash | ||
./manage.py run | ||
``` | ||
|
||
4. Open your browser at http://localhost:8000/ and login with email `[email protected]` and password `evap`. | ||
|
||
3. Open your browser at http://localhost:8000/ and login with email `[email protected]` and password `evap`. | ||
|
||
That's it! | ||
|
@@ -55,6 +53,22 @@ or, to combine all three, simply run `./manage.py precommit`. | |
|
||
You can also set up `pylint`, `isort`, `black` and `prettier` in your IDE to avoid doing this manually all the time. | ||
|
||
### Creating a Pull Request (Workflow Suggestion) | ||
1. (once) [Fork](https://github.com/e-valuation/EvaP/fork) the repository so you have a GitHub repo that you have write access to. | ||
|
||
2. (once) Set up some authentication for GitHub that allows push access. A common option is using [SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh), the remaining instructions assume an SSH key setup. An alternative is using the [GitHub CLI tool](https://cli.github.com/). | ||
|
||
3. (once) Ensure your [git remotes](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) are setup to use SSH. To fetch the up-to-date state of the official repo, it's useful to have an "upstream" remote configured: | ||
```bash | ||
git remote set-url origin [email protected]:<your-username>/EvaP.git | ||
git remote add upstream [email protected]:e-valuation/EvaP.git | ||
``` | ||
4. Create a branch (`git switch -c <your-branch-name>`), commit your changes (`git add` and `git commit`), and push them (`git push`). "Push" will ask you to specify an upstream branch (`git push -u origin <your-branch-name>`). | ||
5. GitHub should now ask you whether you want to open a pull request ("PR"). If the PR solves an issue, use one of GitHub's [magic keywords](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) (like "fixes") in the pull request description to create a link between your PR and the issue. If necessary, please also provide a short summary of your changes in the description. | ||
|
||
|
||
## License | ||
|
||
MIT, see [LICENSE.md](LICENSE.md). | ||
|
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
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
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
Oops, something went wrong.