Skip to content

Commit 558ac11

Browse files
committed
re-init after test flight
0 parents  commit 558ac11

File tree

312 files changed

+8008
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+8008
-0
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# 📜 Code of Conduct
2+
3+
Welcome to the Next Billion Native Commerce (nxtbn) community! This Code of Conduct outlines our expectations for participant behavior, as well as the consequences for unacceptable behavior. We are committed to providing a safe, inclusive, and welcoming environment for everyone involved in our project, regardless of background or identity.
4+
5+
## 🤝 Our Pledge
6+
In the interest of fostering an open and welcoming environment, we pledge to make participation in our project and community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, sexual orientation, or any other protected category.
7+
8+
## 🌟 Expected Behavior
9+
Participants are expected to:
10+
- Be kind, considerate, and respectful to others.
11+
- Use welcoming and inclusive language.
12+
- Respect different viewpoints and experiences.
13+
- Show empathy toward others.
14+
- Gracefully accept constructive criticism.
15+
- Focus on what is best for the community.
16+
- Act in a way that fosters a positive environment.
17+
18+
## ❌ Unacceptable Behavior
19+
Unacceptable behaviors include:
20+
- Harassment, discrimination, or inappropriate comments based on personal characteristics or identity.
21+
- Trolling, insulting, or derogatory remarks.
22+
- Public or private harassment or intimidation.
23+
- Publishing others' private information without permission.
24+
- Disruptive behavior that hinders the community's progress or cohesion.
25+
- Any other conduct that could be reasonably considered inappropriate in a professional setting.
26+
27+
## 📢 Reporting and Enforcement
28+
If you experience or witness behavior that violates this Code of Conduct, please report it to our Code of Conduct team at [[email protected]](mailto:[email protected]). All reports will be handled confidentially and promptly.
29+
30+
We are committed to addressing any behavior that violates this Code of Conduct. The enforcement process includes:
31+
- Investigation of the report.
32+
- Appropriate corrective actions, which may include warnings, temporary bans, or permanent removal from the community.
33+
34+
## 🙏 Acknowledgements
35+
We thank all participants for their help in creating a positive and inclusive community. We are inspired by the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1, which serves as a model for this Code of Conduct. If you have suggestions or feedback, please reach out to us at [[email protected]](mailto:[email protected]).
36+
37+
---
38+
39+
Thank you for being part of the nxtbn community. Together, let's create a welcoming environment for everyone! 🌈

.github/SECURITY.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## 🕵️‍♂️ Important Notice for Reporting Security Vulnerabilities
2+
3+
To report a security vulnerability, **do not** use public GitHub issues. Instead, use one of the following secure channels:
4+
5+
1. **GitHub Security Advisories**: [Submit a report](https://github.com/nxtbn-com/nxtbn/security/advisories)
6+
7+
### Confidentiality
8+
We prioritize your privacy. All reports will be treated with the utmost confidentiality, and we will not share your information without your permission.
9+
10+
### Resolution and Feedback
11+
Upon receiving your report, we will acknowledge it and begin our investigation. You will be notified of our findings and the steps taken to resolve the issue. If appropriate, we will credit you for your contribution in our public announcements.
12+
13+
Please note that we do not currently offer a bounty program and therefore cannot provide monetary rewards for identifying security vulnerabilities. However, we will publicly acknowledge your role as the original source of the report when we announce a fix.
14+
15+
16+
# 🔒 Security Guidelines for nxtbn
17+
18+
Welcome to the security guidelines for **Next Billion Native Commerce (nxtbn)**. This document outlines best practices for ensuring the security of your nxtbn deployment, as well as procedures for reporting security vulnerabilities.
19+
20+
## 🛡️ Security Best Practices
21+
To maintain a secure environment, please follow these best practices:
22+
23+
- **Regular Updates**: Keep your nxtbn installation, dependencies, and server operating systems up to date. This ensures you have the latest security patches and features.
24+
25+
- **Secure Configurations**: Configure your servers and applications with security in mind. Use strong passwords, disable unused services, and employ firewalls and other security measures.
26+
27+
- **Role-Based Access Control (RBAC)**: Assign appropriate permissions to users based on their roles and responsibilities. Follow the principle of least privilege to minimize potential security risks.
28+
29+
- **Secure Communication**: Use encrypted communication protocols such as HTTPS and SSL/TLS to protect data in transit. Ensure that your certificates are valid and not expired.
30+
31+
- **Data Encryption**: Encrypt sensitive data at rest, such as user credentials and payment information. Use secure key management practices to protect encryption keys.
32+
33+
- **Backup and Disaster Recovery**: Implement regular backups and disaster recovery plans to protect against data loss or system failures.
34+
35+
- **Security Audits**: Conduct regular security audits to identify potential vulnerabilities and improve overall security posture.
36+
37+
- **User Education**: Educate your team about security best practices, including how to identify phishing attempts and other common threats.
38+
39+
40+
41+
## 💡 Additional Resources
42+
For more information on securing your nxtbn deployment, refer to the following resources:
43+
44+
- [Django Security Practices](https://docs.djangoproject.com/en/stable/topics/security/)
45+
- [OWASP Security Guidelines](https://owasp.org/)
46+
47+
If you have any security-related questions or concerns, please contact us at [[email protected]](mailto:[email protected]).
48+
49+
---
50+
51+
Thank you for helping us keep nxtbn secure. Together, we can ensure a safe and reliable platform for everyone. 🔐

.gitignore

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
/node_modules/
107+
/avatar/
108+
/qr/
109+
/media/
110+
/result/
111+
/staticfiles/
112+
local.py
113+
/mediafiles/
114+
115+
# uploaded template to be ignored
116+
user_themes
117+
nginx.conf
118+
119+
120+
121+
# Don't ignore the __init__.py file
122+
!nxtbn/payment/plugins/__init__.py
123+
124+
# Ignore all subdirectories under plugins
125+
nxtbn/payment/plugins/*/

CONTRIBUTING.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Contributing to nxtbn
2+
3+
Thank you for considering contributing to nxtbn! This guide provides an overview of how to contribute to our project and outlines the terms and conditions for contributions. Please read it carefully before you start.
4+
5+
## Ways to Contribute
6+
- **Code**: Contribute code to fix bugs, add new features, or improve existing functionality.
7+
- **Documentation**: Help with documentation updates and creating user guides.
8+
- **Community**: Engage in discussions, answer questions, and support other contributors.
9+
10+
## How to Contribute
11+
1. **Fork the Repository**: Click "Fork" at the top of the repository page to create your copy.
12+
2. **Create a New Branch**: Use a descriptive branch name for your contribution.
13+
3. **Make Changes**: Implement your changes following our coding guidelines.
14+
4. **Run Tests**: Ensure that your changes do not introduce errors.
15+
5. **Submit a Pull Request**: Open a pull request (PR) from your branch to the `main` branch, providing a clear description of the changes.
16+
17+
## Getting Started
18+
- **Check Open Issues**: Before you start working on a contribution, check the [issue tracker](https://github.com/nxtbn-com/nxtbn/issues) to see if someone else is already working on it or if there's an existing issue related to your idea.
19+
- **Communication**: If you're unsure about a task or need guidance, open an issue or join ongoing discussions. Collaboration is encouraged.
20+
21+
## Coding Guidelines
22+
- **Coding Style**: Follow PEP 8 for Python code and standard conventions for React/JavaScript code.
23+
- **Python Black Formatting**: We use [Black](https://github.com/psf/black) to format Python code. Ensure your code is formatted with Black before committing.
24+
- **Existing Patterns**: Follow existing code structures and naming conventions in the codebase to maintain consistency.
25+
- **Comments and Documentation**: Add comments to explain complex logic, and update relevant documentation or docstrings as needed.
26+
27+
## Commit Guidelines
28+
- **Commit Messages**: Use clear and consistent commit messages. Follow this format:
29+
- `feat:` for new features.
30+
- `fix:` for bug fixes.
31+
- `docs:` for documentation changes.
32+
- `style:` for formatting changes.
33+
- `refactor:` for code restructuring without changing functionality.
34+
- **Commit Frequency**: Commit after completing a logical unit of work. Keep commits manageable.
35+
- **Review Commits**: Review your commits before pushing to ensure proper formatting and clear messages.
36+
37+
## Pull Request Guidelines
38+
- **Branch Naming**: Use descriptive branch names, like `feature/add-login` or `fix/bug-123`.
39+
- **Pull Request Description**: Describe your changes thoroughly. Include what problem it solves, how to test it, and any related issues.
40+
- **Automated Tests**: Ensure your changes pass existing tests and add new tests if required.
41+
- **Review and Feedback**: Be open to feedback and willing to adjust your code based on reviewer comments.
42+
43+
## Best Practices
44+
- **Code Consistency**: Follow the existing code patterns. Consistency helps maintainers and other contributors understand your changes.
45+
- **Security**: Ensure your changes don't introduce security vulnerabilities. If you find a security issue, report it privately to the maintainers.
46+
- **Collaboration**: Work with other contributors and maintainers. Communication is key to successful contributions.
47+
- **Testing**: Always test your changes before submitting a pull request. Use automated tests to ensure code quality.
48+
49+
50+
51+
## Code of Conduct
52+
All contributors must follow our [Code of Conduct](.github/CODE_OF_CONDUCT.md). We expect a respectful and inclusive environment.
53+
54+
## Terms and Conditions
55+
By contributing to nxtbn, you agree to the following:
56+
- Contributions are owned by Bytenyx Limited, the project maintainer, or its successors.
57+
- Intellectual property rights from contributions are transferred to Bytenyx Limited.
58+
- Contributions must comply with the project's licensing terms as defined in the `LICENSE` file.
59+
60+
## Right to Modify
61+
Bytenyx Limited reserves the right to change, modify, update, or terminate any terms and conditions or policies related to this project at any time. You will be notified of significant changes, and by continuing to contribute, you agree to abide by the updated terms.
62+
63+
## Need Help?
64+
If you have questions or need support, please create an issue in the repository or contact us at [[email protected]](mailto:[email protected]).
65+
66+
Thank you for contributing to nxtbn!

Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM python:3.10-slim-buster
2+
3+
4+
COPY ./Pipfile /Pipfile
5+
COPY ./Pipfile.lock /Pipfile.lock
6+
7+
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
8+
build-essential \
9+
libpq-dev \
10+
libmariadbclient-dev \
11+
libjpeg62-turbo-dev \
12+
zlib1g-dev \
13+
libwebp-dev \
14+
netcat \
15+
&& rm -rf /var/lib/apt/lists/*
16+
17+
18+
RUN pip install --no-cache-dir -q 'pipenv==2020.11.15' && pipenv install --deploy --system
19+
20+
21+
RUN mkdir /backend
22+
COPY ./ /backend
23+
WORKDIR /backend
24+
25+
26+
RUN chmod +x /backend/scripts/entrypoint.sh
27+
RUN chmod +x /backend/media
28+
29+
30+
CMD ["/backend/scripts/entrypoint.sh"]

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2024, bytenyx limited
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Pipfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
django = "==4.2.11"
8+
django-allauth = "*"
9+
django-extensions = "*"
10+
djangorestframework = "*"
11+
drf-yasg = "*"
12+
psycopg2-binary = "*"
13+
pillow = "*"
14+
django-storages = "*"
15+
gunicorn = "*"
16+
factory-boy = "*"
17+
tqdm = "*"
18+
whitenoise = "*"
19+
django-cors-headers = "*"
20+
python-dotenv = "*"
21+
django-filter = "*"
22+
faker = "*"
23+
pyjwt = "*"
24+
stripe = "*"
25+
py-money = "*"
26+
27+
[dev-packages]
28+
coverage = "*"
29+
30+
[requires]
31+
python_version = "3.10"

0 commit comments

Comments
 (0)