{"id":19357827,"url":"https://github.com/dleedev365/apricity-serverless-django","last_synced_at":"2026-04-30T22:37:46.553Z","repository":{"id":176565161,"uuid":"257998855","full_name":"dleedev365/Apricity-Serverless-Django","owner":"dleedev365","description":"[CMPT 474: Web Systems Architecture] An experimental lightweight serverless web application deployed to AWS using Django, Zappa, and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2020-06-06T01:50:38.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-06T18:24:52.562Z","etag":null,"topics":["aws","crud-application","django","postgresql","python3","websocket"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dleedev365.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-04-22T19:23:58.000Z","updated_at":"2024-11-28T19:39:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3a8e44d-2067-4cae-8238-baac1af30799","html_url":"https://github.com/dleedev365/Apricity-Serverless-Django","commit_stats":null,"previous_names":["dlee0528/apricity","dleedev365/apricity","dleedev365/apricity-serverless-django"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleedev365%2FApricity-Serverless-Django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleedev365%2FApricity-Serverless-Django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleedev365%2FApricity-Serverless-Django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleedev365%2FApricity-Serverless-Django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dleedev365","download_url":"https://codeload.github.com/dleedev365/Apricity-Serverless-Django/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240473964,"owners_count":19807249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","crud-application","django","postgresql","python3","websocket"],"created_at":"2024-11-10T07:09:22.182Z","updated_at":"2026-04-30T22:37:41.514Z","avatar_url":"https://github.com/dleedev365.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Technology Overview\n## 1. Application \n- Django\n- PostgreSQL\n- Python3\n\n## 2. Deployment\n- Zappa\n\n## 3. Cloud \n- AWS S3 (Front-End)\n- AWS CloudFront (Front-End)\n- AWS Lambda (Back-end)\n- AWS RDS AuroraDB (Database)\n- AWS VPC (Security)\n- AWS API Gateway (AWS Communication)\n- AWS CloudWatch (Monitoring)\n\n\n### To Run the app locally, you need to follow the following steps:\n1. Create a virtual environment, \"python3 -m venv app-env\"\n1. Go to virtual environment, \"source app-env/bin/activate\"\n2. Install packages, \"pip install -r requirements.txt\" \n3. Install redis-server for websocket, \"sudo apt install redis-server\"\n4. Run the redis server in a terminal, \"redis-server\"\n5. Run the Django in other terminal, \"python manage.py runserver\"\n-------------------------------------------------------------------------------\nOpen the Chrome console to inspect errors.\n\n**You need to run redis-server first,** if encountered by this error\n\n*  This error persists when deployed with Zappa\n\n```\n(index):24 WebSocket connection to '\u003cdomain\u003e' failed: Error during WebSocket handshake: Unexpected response code: 200\n(anonymous) @ (index):24\n(index):45 Chat socket error occured\n(index):41 Chat socket closed\n```\n\n\n\n-------------------------------------------------------------------------------\n### Quick summary of changes\n* app\u003esetting.py\n    * CHANNEL_LAYERS =[... \"hosts\": [(\"localhost\", 6379)] ]   \n    * WSGI_APPLICATION = 'app.wsgi.application\", ASGI_APPLICATION = 'app.routing.application'\n    * INSTALLED_APPS = [...'channels'...]\n* chat\u003eviews.py\n    * ASGI_APP.... changed chat.routing to app.routing\n* chat\u003econsumer.py\n* chat\u003etemplate\u003echat\u003eroom.html\n    * changed -\u003e var chatSocket = new WebSocket 'ws://' + window.location.host + '/ws/chat/' + roomName + '/')\n* chat\u003etemplates\u003echat\u003eindex.html\n* chat\u003erouting.py \n* app\u003easgi.py\n* chat\u003eurls.py\n* zappa_settings.json -\u003e timeout set to 300 seconds (becayse, when deployed, registering a user takes a long timm and causes timeout error)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdleedev365%2Fapricity-serverless-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdleedev365%2Fapricity-serverless-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdleedev365%2Fapricity-serverless-django/lists"}