{"id":20003199,"url":"https://github.com/mbrsagor/booking","last_synced_at":"2026-03-06T18:40:59.500Z","repository":{"id":43520525,"uuid":"345778633","full_name":"mbrsagor/booking","owner":"mbrsagor","description":"The application basically an online booking system that users can be booking any kind of room, hotel, etc.","archived":false,"fork":false,"pushed_at":"2025-01-19T17:18:46.000Z","size":1574,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T08:05:28.962Z","etag":null,"topics":["django","framework","python3","rest"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/mbrsagor.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,"publiccode":null,"codemeta":null}},"created_at":"2021-03-08T19:58:49.000Z","updated_at":"2025-01-19T17:18:48.000Z","dependencies_parsed_at":"2024-11-10T17:21:53.169Z","dependency_job_id":"045a368c-df63-4018-aeb9-a2be368105db","html_url":"https://github.com/mbrsagor/booking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbooking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbooking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbooking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrsagor%2Fbooking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbrsagor","download_url":"https://codeload.github.com/mbrsagor/booking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252357256,"owners_count":21735105,"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":["django","framework","python3","rest"],"created_at":"2024-11-13T05:24:35.899Z","updated_at":"2026-03-06T18:40:59.490Z","avatar_url":"https://github.com/mbrsagor.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Booking\nThe application basically, is an online booking system that users can be booking room, hotel, etc.\n\n#### Instruction to run the application in your local dev server:\n\n###### Prerequisites\n- Python 3.8.5\n- PostgreSql 14.0\n\n\u003e The following steps will walk you thru installation on a Mac. I think linux should be similar. It's also possible to develop on a Windows machine, but I have not documented the steps. If you've developed django apps on Windows, you should have little problem getting up and running.\n\n```\ngit clone https://github.com/mbrsagor/booking.git\ncd booking\nvirtualenv venv --python=python3.8\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n###### Then create ``.env`` file and paste code from `.sample.env` file and add validate information.\n\n-------------------------------------------\n```bash\n|--\u003e sample.env\n|--\u003e .env\n```\n\n###### Run development server:\n\n```\npython manage.py makemigrations rent\npython manage.py migrate\npython manage.py runserver\n```\n\n\n###### Rest API endpoint:\n```bash\nhttp://127.0.0.1:8000/api/\n```\n\n#### psql DB new for python3.10 to 3.10\n```bash\npip install psycopg2\n```\n\n\n###### LOGGING: project settings.py file paste the code\n```python\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,                                                                    \n    'handlers': {                                                                                         \n        'file': {\n            'level': 'INFO',\n            'class': 'logging.FileHandler',\n            'filename': '/code/myapp/logs/info.log',             \n        },\n        'console': { \n            'level': 'DEBUG',\n            'class': 'logging.StreamHandler',                                                             \n        },                                                                                                \n    },\n    'loggers': {\n        'django': {\n            'handlers': ['file'],                                                                         \n            'level': 'INFO',\n            'propagate': True,                                                                            \n        },\n        'app-logger': { \n            'handlers': ['file', 'console'],                                                              \n            'level': 'CRITICAL',                                                                          \n            'propagate': True,                                                                            \n        },                                                               \n    }, \n}\n```\n------------------\n\n```python\nimport logging\n\ndef appError():\n    appLogger = logging.getLogger('app-logger')                                                           \n    appLogger.critical(\"A critical error occurred\")\n```\n\n## Happy coding :wink:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrsagor%2Fbooking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbrsagor%2Fbooking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrsagor%2Fbooking/lists"}