{"id":16771583,"url":"https://github.com/meysam81/sana","last_synced_at":"2025-04-05T08:13:05.670Z","repository":{"id":40397840,"uuid":"160505923","full_name":"meysam81/sana","owner":"meysam81","description":"the solution to the interview question for sana gostar corp.","archived":false,"fork":false,"pushed_at":"2024-10-09T02:31:27.000Z","size":118,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-10T15:50:33.271Z","etag":null,"topics":["interview","interview-practice","interview-prep","interview-preparation","interview-questions","interview-test","interviewbit-solutions","sana-gostar-sabz"],"latest_commit_sha":null,"homepage":"http://sanags.ir/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meysam81.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-12-05T11:08:07.000Z","updated_at":"2023-03-04T10:14:25.000Z","dependencies_parsed_at":"2024-12-18T13:53:49.173Z","dependency_job_id":null,"html_url":"https://github.com/meysam81/sana","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fsana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fsana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fsana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meysam81%2Fsana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meysam81","download_url":"https://codeload.github.com/meysam81/sana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305946,"owners_count":20917208,"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":["interview","interview-practice","interview-prep","interview-preparation","interview-questions","interview-test","interviewbit-solutions","sana-gostar-sabz"],"created_at":"2024-10-13T06:28:36.439Z","updated_at":"2025-04-05T08:13:05.644Z","avatar_url":"https://github.com/meysam81.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sana\nThis app was a question asked at an interview technical test, required to provide a login page for a user, that should be banned after 3 times requesting the login page or entering the wrong password. The ban must be held for 1 hour, and the resulting is the following app.\n\n\n## Preliminaries\nTo start the application, first you should install some stuff.\nFor debian-based linux systems:\n```\nsudo apt-get install virtualenv virtualenvwrapper\n```\nThen you need to do some setups in order to be able to run the app.\nSome lines must be added to `~/.bashrc`, so :\n```\nmkdir -p ~/Codes/Python/dev ~/Codes/Python/envs\ncat \u003c\u003c EOF \u003e\u003e ~/.bashrc\nexport WORK_HOME=$HOME/Codes/Python/envs\nexport PROJECT_HOME=$HOME/Codes/Python/dev\n. /usr/local/bin/virtualenvwrapper.sh\nEOF\n```\n\n### Sourcing your bashrc\nAfter adding the lines from previous step, you should re-run your bashrc so that the changes are applied:\n```\n. ~/.bashrc\n````\n\n## Setup the Project\nYou most probably have the stable python 2.7 version, so no worries there.\nAfter doing the previous steps, the next 2 steps are easy as a peach.\n```\ncd ~/Codes/Python/dev/\ngit clone git@github.com:meysam81/sana.git\nmkproject sana\n```\n\n## Run the Project\nNow to run the project, simply run the following command:\n```\npython manage.py runserver\n```\n\nAnd now you should be able to see the webpage from the following address:\n`localhost:5000`\n\n## Stop the project\nIf you want to stop the app, simply press the following keys on your keyboard:\n`Ctrl + C`\n\nAnd after that, using the following command you can exit the environment:\n`deactivate`\n\nAnd if you ever wanted to comeback to the project, run the following command:\n`workon sana`\n\nThanks for reading, feel free to pull, fork or star.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeysam81%2Fsana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeysam81%2Fsana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeysam81%2Fsana/lists"}