GDG ABA Website Backend Repository
Welcome to the GDG Aba website backend project! This is an open-source Django project that aims to maintain and manage the server that stores data of the GDG Aba website. We appreciate your interest in contributing to this project, and we want to ensure that the contribution process is smooth and efficient for both new and experienced contributors.
- First clone the repo:
git clone https://github.com/YourUsername/gdg-aba-website-backend.git
- Go into the directory:
cd gdg-aba-website-backend
- Install pipenv:
pip install pipenv
NOTE: Pipenv creates a virtual environment for you that can be activated with pipenv shell
- install packages from requirements.txt using pipenv:
pipenv install -r requirements.txt
- Generate DB migrations:
python manage.py makemigrations
- Make migrations:
python manage.py migrate
- Spin up the local server:
python manage.py runserver
- Visit the localhost url
http://127.0.0.1:8000/
on your web browser
- To acitvate your virtual environment use:
pipenv shell
- To exit from the virtual environment use:
exit
- To install packages use:
pipenv install package-name
More about Pipenv here
To contribute to this project, follow these steps:
-
Fork the Repository: Click the "Fork" button at the top right corner of this repository's page to create a copy of the project in your own GitHub account.
-
Clone Your Fork: Use
git clone
to create a local copy of your fork on your development machine.
git clone https://github.com/YourUsername/gdg-aba-website-backend.git
- Create a Branch: Create a new branch for your work. Use a descriptive branch name that reflects the nature of your contribution. Preferably, use your username as the branch.
git checkout -b feature/your-new-feature
Note: Don't forget to install the required packages by doing pip install -r requirements.txt
-
Make Changes: Make your changes or additions to the project code. Be sure to follow the project's coding guidelines and best practices.
-
Commit Your Changes: Commit your changes with clear and concise commit messages.
git commit -m "Add a new feature"
- Update the Requirements file: Do this before pushing so the next contributor won't face any issue
pip freeze >> requirements.txt
- Push Your Changes: Push your changes to your fork on GitHub.
git push origin feature/your-new-feature
- Submit a Pull Request: Go to the original repository on GitHub and click the "New Pull Request" button. Provide a clear and detailed description of your changes in the pull request.
Please adhere to the following guidelines when contributing to this project:
- Use Black for formatting.
- Write clear and concise code with comments where necessary.
- Test your code thoroughly.
- Keep your pull requests focused on a single issue or feature.
- Here is DRF documentation to assist you.
If you encounter bugs, have suggestions, or want to discuss new features, please open an issue on the GitHub issue tracker. Provide detailed information about the problem or enhancement you're proposing.
This project is licensed under the MIT License - see the LICENSE file for details.
We appreciate your interest and contributions to this project. Special thanks to all our contributors for helping make this project better. We look forward to your valuable input!