{"id":18786356,"url":"https://github.com/nvnx7/dukaan-clone","last_synced_at":"2025-04-13T12:34:20.717Z","repository":{"id":128818065,"uuid":"322681438","full_name":"nvnx7/dukaan-clone","owner":"nvnx7","description":"Web App Clone of popular Dukaan App","archived":false,"fork":false,"pushed_at":"2021-01-10T15:18:06.000Z","size":3158,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2023-09-15T11:13:53.069Z","etag":null,"topics":["django","django-rest-framework","material-ui","postgresql","react","redux","single-page-app"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nvnx7.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}},"created_at":"2020-12-18T19:01:41.000Z","updated_at":"2023-09-15T11:13:56.515Z","dependencies_parsed_at":"2023-03-29T05:30:59.166Z","dependency_job_id":null,"html_url":"https://github.com/nvnx7/dukaan-clone","commit_stats":null,"previous_names":["nvnx7/dukaan-clone"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvnx7%2Fdukaan-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvnx7%2Fdukaan-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvnx7%2Fdukaan-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvnx7%2Fdukaan-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvnx7","download_url":"https://codeload.github.com/nvnx7/dukaan-clone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223589261,"owners_count":17169894,"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","django-rest-framework","material-ui","postgresql","react","redux","single-page-app"],"created_at":"2024-11-07T20:51:22.100Z","updated_at":"2024-11-07T20:51:22.561Z","avatar_url":"https://github.com/nvnx7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dukaan\n\nThis is a web app clone of popular Dukaan App, made just for of learning purpose.\n\nFollowing is list of major tools that were utilized to develop the app:\u003cbr\u003e\n\n- **Backend**\n  - Django\n  - DRF\n  - PostgreSQL\n  - Postman\n- **Frontend**\n  - React\n  - Redux\n  - MaterialUI\n  - Formik\n  - Axios\n\nApp Previews: \u003cbr\u003e\u003cbr\u003e\n\u003cimg src=\"./previews/home.jpg\" width=\"425\" alt=\"customer shop\"/\u003e \u003cbr\u003e\n\u003cimg src=\"./previews/customer-shop.jpg\" width=\"400\" alt=\"customer shop\"/\u003e \u003cimg src=\"./previews/customer-bag.jpg\" width=\"400\" alt=\"customer bag\"/\u003e\n\u003cbr\u003e\n\u003cimg src=\"./previews/owner-shop.jpg\" width=\"400\" alt=\"owner shop\"/\u003e \u003cimg src=\"./previews/owner-orders.jpg\" width=\"400\" alt=\"owner orders\"/\u003e\n\n## Setup\n\nIn root directory create a virtual Python environment for backend, (using `virtualenv`) named \"env\" here:\n\n```\nvirtualenv env\n```\n\nActivate virtual environment:\n\n- Windows\n\n```\n\\env\\Scripts\\activate\n```\n\n- Linux/Mac\n\n```\nsource env/bin/activate\n```\n\nInstall all backend dependencies from `requirements.txt`:\n\n```\npip install -r requirements.txt\n```\n\nNow, install all frontend dependencies listed in `frontend/package.json`, using npm\n\n```\ncd frontend\nnpm install\n```\n\nAll app dependencies must be installed now.\u003cbr\u003e\n\n## **NOTE**\n\nConfigure the `backend/dukaan/settings.py` to connect your database to the app before running the app. See:\u003cbr\u003e\n[How To Use PostgreSQL with your Django Application](https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-django-application-on-ubuntu-14-04). \u003cbr\u003e\u003cbr\u003e\n\nNow migrate all the tables to your db. In root dir:\n\n```\ncd backend\npython manage.py makemigrations\npython manage.py migrate\n```\n\nAll required tables should exist in db now.\u003cbr\u003e\n**NOTE** - Populate the `ProductCategory` table with product categories to be available in shop. Forms to Add/Edit a product in the app fetch available categories from this table. If left empty, relevant fields (drop down menus) won't display any choice to select.\n\n## Run the App\n\nSpin up the django server for API requests. In root dir:\n\n```\ncd backend\npython manage.py runserver\n```\n\nRun the frontend dev server. In root dir:\n\n```\ncd frontend\nnpm run start\n```\n\nThat's it.\u003cbr\u003e\nNote that you don't need to run two different server to run app. This was just for development purpose. The django's `backend/dukaan/settings.py` can be configured to serve the static resources from django server itself. See: \u003cbr\u003e\n[Django React Setup – Best Project Structure](https://studygyaan.com/django/django-react-setup-best-project-structure).\n\n## Developed By\n\n**Naveen Sahu** \u003cbr\u003e\nTwitter - [@heyNvN](https://twitter.com/heyNvN)\n\n## License\n\nSee [LICENSE](https://github.com/theNvN/dukaan-clone/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvnx7%2Fdukaan-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvnx7%2Fdukaan-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvnx7%2Fdukaan-clone/lists"}