Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix #8

Merged
merged 5 commits into from Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
*/*/__pycache__
venv
db.sqlite3
*/.vscode/*`
*/.vscode/*
.env
*.code-workspace
**/migrations/*
satoshi_box/.env
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,18 @@ SatoshiBox is a tool for those who want to sell files anonymously and receive BT
### Requirements:
Make sure you have [Python](https://www.python.org/downloads/) and [Pip](https://pip.pypa.io/en/latest/installing/#installing-with-get-pip-py) installed. Python version >= 3.6 is required.

You also need Django, django-hitcount and bootstrap-py. These can be installed by running:
You also need Django, and other dependencies. These can be installed by running:

```
pip install django
pip install django-hitcount
pip install bootstrap-py
pip install python-dotenv
pip install -r requirements.txt
```
After you have installed the packages mentioned above nativate to your SatoshiBox folder with your terminal and run:
```
python manage.py migrate
python manage.py makemigrations
python manage.py migrate
```
Update the `SECRET_KEY` [here](https://github.com/cnohall/SatoshiBox/blob/master/satoshi_box/settings.py#L28) and the `BLOCKONOMICS_KEY`, `EMAIL_HOST_USER`, `EMAIL_HOST_PASSWORD` [here](https://github.com/cnohall/SatoshiBox/blob/master/satoshi_box/settings.py#L130-L135), with your own values. It is recommended that you do so by specifying your own `.env` file.
Update the `SECRET_KEY` [here](https://github.com/cnohall/SatoshiBox/blob/master/satoshi_box/settings.py#L28) and the `BLOCKONOMICS_KEY`, `EMAIL_HOST_USER`, `EMAIL_HOST_PASSWORD` [here](https://github.com/cnohall/SatoshiBox/blob/master/satoshi_box/settings.py#L130-L135), with your own values. If you haven't yet set up [Blockonomics Xpub merchant](https://www.blockonomics.co/merchants#/) value, please set it up first. It is recommended that you do so by specifying your own `.env` file.
Lastly, you can start the server by running:
```
python manage.py runserver 8080
Expand Down
3 changes: 3 additions & 0 deletions core/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ file.addEventListener('change', function(e) {
file.setCustomValidity('Total size exceeds 5mb');
file.reportValidity();
}
else{
file.setCustomValidity('');
}
document.getElementById('value').innerHTML = "Selected " + val;
document.getElementById('size').innerHTML = "Total size: " + size + ' MB';
});