mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
db342d0d286606c2a345b4f3ed67003892771e7d
Berufsschule_HAM
This Project serves the purpose of managing Hardware-Assets
How to setup and build the project
- If you want to use a local LDAP instance: Install LDAP - otherwise use the default ld50.dev configuration
- Setup the environment using VSCode by installing the extensions: ".NET Install Tool", "C#" (from Microsoft), "C# Dev Kit" (from Microsoft) in the Extensions tab
- Navigate to the "Source Control" tab (left side; looks like a node graph)
- Click "Clone Repository"
- Enter this repository's URL
- Follow the instructions to authenticate using GitHub
- Run the project using
F5ordotnet build && dotnet runin the console
How to Install and configure LDAP
- Install LDAP on Ubuntu and do basic configuration
- Create the three "ou" elements: "assets", "locations" with objectClass "organizationalUnit", and "ou" element "users" with objectClasses "organizationalUnit", and "top".
How to connect to ldap server using apache directory studio
- Click "add new connection"
- Choose any connection name, hostname: "ld50.dev", port: 8389
- Authentication method: "Simple Authentication", Bind DN: "cn=admin,dc=localhost", bind password: "TestLDAP"
- Continue and finish setup
How to contribute
- Create a new branch
- In "Source Control" tab click on "main" (i.e. the current branch)
- Select "+ Create a new branch..."
- Give it a name (e.g. your name or "YourName-#KanbanTaskID")
- Implement your changes
- Prepare your changes to commit
- In "Source Control" under "Changes" you'll find the changed files. For each file:
- Click on each file, examine all the shown changes and check whether it's what you want committed. Remove temporary elements you added for debugging (e.g. "Console.Log")
- After cleaning up the file, click on the "+" on the right (Mouseover text: "Stage Changes")
- After staging all file changes in step 3, do a final test of the changes before you commit
- Press the big blue "Commit" button
- Do
git push(in the "GRAPH" section there are a few buttons, one of which has an upward facing arrow and the mouseover text "Push"; use this one.) - After committing and pushing your changes, merge the branch. Ask @LD-Reborn to merge, or if you don't fear merge conflicts:
- Switch to the main branch
git checkout main(or select main branch at the top) - Merge branch
git merge Your-branch-name - If it was successful you will see a commit you can push. Push it.
- If there was no error: congrats. If there was, contact @LD-Reborn
- Switch to the main branch
Languages
HTML
60.1%
C#
35.1%
JavaScript
4%
CSS
0.8%