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

Add websockets for realtime bidding to the backend #75

Merged
merged 12 commits into from
Apr 10, 2024
13 changes: 8 additions & 5 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@ django = ">=4.2.6"
djangorestframework = ">=3.14.0"
django-environ = ">=0.11.2"
psycopg2-binary = ">=2.9.9"
boto3 = ">=1.29.6"
boto3 = ">=1.34.47"
django-storages = ">=1.14.2"
djangorestframework-simplejwt = ">=5.3.1"
cryptography = ">=42.0.2"
cryptography = ">=42.0.3"
requests = ">=2.31.0"
pyjwt = ">=2.8.0"
PyJWT = ">=2.8.0"
django-cors-headers = ">=4.3.1"
zappa = ">=0.58.0"
pandas = ">=2.2.1"
pandas = ">=2.0.3"
gunicorn = "*"
drf-jwt = ">=1.19.2"
django-cognito-jwt = ">=0.0.4"
channels = ">=4.1.0"
daphne = ">=4.1.0"
asgiref = ">=3.8.1"

[dev-packages]
flake8 = ">=6.1.0"
isort = ">=5.12.0"
black = ">=23.10.0"
black = ">=23.11.0"

[requires]
python_version = "3.10"
Expand Down
195 changes: 178 additions & 17 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.7 on 2024-04-08 06:03

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("auction", "0002_auction_end_time_auction_start_time_auctionday_and_more"),
]

operations = [
migrations.AlterField(
model_name="auctionverifieduser",
name="cognito_user_id",
field=models.CharField(max_length=2500),
),
]
2 changes: 1 addition & 1 deletion backend/auction/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def save(self, *args, **kwargs):


class AuctionVerifiedUser(MainModel):
cognito_user_id = models.CharField(max_length=255, null=False, blank=False)
cognito_user_id = models.CharField(max_length=2500, null=False, blank=False)
auction = models.ForeignKey(Auction, on_delete=models.CASCADE)
is_verified = models.BooleanField(default=False)

Expand Down
3 changes: 3 additions & 0 deletions backend/bid/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
class BidConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "bid"

def ready(self):
import bid.signals
Loading
Loading