Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nayan32biswas/django-crud
https://github.com/nayan32biswas/django-crud
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nayan32biswas/django-crud
- Owner: nayan32biswas
- Created: 2021-06-11T08:01:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-29T06:28:34.000Z (about 1 year ago)
- Last Synced: 2023-10-29T07:23:08.447Z (about 1 year ago)
- Language: Python
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Project setup guidelines
- `git clone [email protected]:nayan32biswas/django-crud.git` Clone the project and navigate the folder by command line.
## Run Project With Docker
1. `docker-compose build server` First build server service.
2. `docker-compose run --rm server python manage.py migrate` Initialize DB/Create DB.
3. `docker-compose run --rm server python manage.py createsuperuser` Create Superuser if needed.
4. `docker-compose run --rm server python manage.py populate_data` Create 100 products with related categories and stock if needed.
5. `docker-compose run --rm server python manage.py collectstatic` Load static files.
6. `docker-compose up server` Run Project with this command and [visit here](http://localhost:8000).## Setup Project with venv
1. Install venv from [here](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/).
2. Navigate to the project directory and activate venv.
3. `cd server/` navigate to server directory where the manage.py file located.
4. `pip install -r requirements.txt` Install required package.
5. `python manage.py migrate` Initialize DB/Create DB.
6. `manage.py createsuperuser` Create Superuser if needed.
7. `python manage.py populate_data` Create 100 products with related categories and stock if needed.
8. `python manage.py collectstatic` Load static files.
9. `python manage.py runserver` Run Project with this command and [visit here](http://localhost:8000).