Keyper helps you in managing and tracking multiple keys especially in University where there are many rooms and keys to handle and keep track on the borrowed and returned keys.
Keyper has 3 main parts:
- API,
- Web Client, and
- Keyper Device
- git @any version
- python at least v3.11.0
- Add SSH Key of your machine to your github account. Below are the steps:
-
Generate SSH Key Pair
In the Git Bash terminal, enter the following command to generate a new SSH key pair:
ssh-keygen -o -t rsa -C "your_email@example.com"Replace "your_email@example.com" with your email address associated with GitHub. Press Enter to accept the default file location and name (generally, it will be saved in ~/.ssh/id_rsa). When prompted, enter a secure passphrase (optional but recommended) and press Enter. Remember this passphrase, as you will need it later.
-
Copy Public Key
To display the contents of your public key, run the following command in the Git Bash terminal:
cat ~/.ssh/id_rsa.pubThe output should be the public key. Select the entire key and copy it to the clipboard.
-
Add Public Key to GitHub
- Open your web browser and go to GitHub (https://github.com/).
- Log in to your GitHub account.
- Click on your profile picture in the top-right corner and select "Settings" from the dropdown menu.
- In the left sidebar, click on "SSH and GPG keys".
- Click on the "New SSH key" button.
- Provide a title for the SSH key (e.g., "My Windows SSH Key").
- Paste the copied public key into the "Key" field.
- Click the "Add SSH key" button.
- If prompted, enter your GitHub account password to confirm.
That's it! You've successfully generated an SSH key on Windows and added the public key to GitHub. You can now proceed on how to contribute or the installation.
Note Before proceeding on how to contribute, you must install the prerequisite programs first.
- Fork the main repository
- Clone the forked repo (from your account) using this command:
git clone git@github.com:<your-username>/Keyper.git
change the
<your-username>with your github username including the angle brackets - Create a new branch to easily track and manage changes:
git checkout -b <your-username>/<feature-to-change>
again, change the
<your-username>with your username and change the<feature-to-change>with the feature you want to change sample branch name would bemarc/update-landing-page - Create some changes based on the desired feature.
- Add your changes
git add .orgit add <specific-file(s)> - Commit your added changes
git commit -m "add: feature"orgit commit -m "update: feature" - Push to your remote repo
git push -u origin <branch-name>example:git push -u origin marc/update-landing-page - Open your github repo and notice the new
Compare and Create Pull Requestbutton, click it andcreate pull request - Wait for it to be merged! Thank you!
Note Before proceeding on the installation, you must install the prerequisite programs first.
- Clone the repository if not yet cloned to your local machine.
cd Keyper- Create a python virtual environment:
python -m venv .venvorpy -m venv .venv
Note You must name your virtual environment folder as
.venvto include it in the.gitignorefiles or name it any name you like and include it in.gitignore- activate your venv script by
.venv\Script\activate.bator.venv\Script\Activate.ps1if your using powershell
- Once you've created and activated your python virtual environment, install the necessary python libraries:
pip install -r requirements.txt - You can now run
python manage.py runserverand view the website through this link 127.0.0.1:8000/