- This is a web application for management your housework !
- This app is simple CRUD app (partially used Ajax) packaged with django-uwsgi-nginx-https docker image.
- You can soon run and develop your own web app based on this package.
- You can register your shopping item, date, shop and photo.
- You can check the bought shopping items.
- If you can't buy item today, the item will automatically transfer the following day.
- You can register your recipe url or file.
- You can search recipe by name, ingredient or category.
- You can register your meal plan by manual input.
- You can register meal plan from recipe collection.
- The meal plan was shown by your category.
- django-housework-app\housework-app\django-uwsgi-nginx\app\doc
- housework-app_requiremnets.md: requirements definition
- housework-app_usecase.puml: use case diagram
- housework-app_screen.md: screen list
- Clone or download zip of this project.
- Open 'django-housework-app'(project) folder.
- Create the .env file under the following directory.
- django-housework-app\housework-app\django-uwsgi-nginx\app
- Open the .env file and write the following code
*when you run app in production mode, you should change the SECRET_KEY.
SECRET_KEY=t@vl8u$$uirv_omcs*uo6o%3%1^!t_8*1l*%n=me6r+ox-l5+6 DEBUG=False ALLOWED_HOSTS=housework-app-local.com
- If you use other domain, change the DOMAINS in the following file. *default domain is 'housework-app-local.com'.
- django-housework-app\housework-app\docker-compose.yml
- Add the following in C:\Windows\System32\drivers\etc\hosts (Windows). *please save as administrator. *You should use the [Half-width space] or [Tab] key between the IP address and the host name.
- 127.0.0.1 housework-app-local.com
- Move to housework-app directory.
cd housework-app
- Run docker-compose file.
docker-compose up
- After building, access to the following url.
- Click ADVANCED, then click Proceed to housework-app-local.com (unsafe).
- If you want to run app in production mode, please change the following code in housework-app\docker-compose.yml.
-
Detail explanation is written in SteveLTN/https-portal page.
- 'DOMAINS': change from housework-app-local.com to 'your domain'.
- 'STAGE': change from 'local' to 'staging' or 'production'.
environment: # please change to your domain. DOMAINS: 'housework-app-local.com -> http://django:50000' STAGE: 'local' CLIENT_MAX_BODY_SIZE: 10M
- This procedure is using Visual Studio Code.
- Install Visual studio code.
- Clone or download zip of this project to your local.
- Open 'app' folder
- django-housework-app\housework-app\django-uwsgi-nginx\app
- If you use virtual environment, create venv befor the following step.
- Install requirement package as below.
pip install -r requirements.txt
- Set the python interpreter.
- click View > Command palette and select Python : select interpreter.
- Push runserver button.(or Ctrl + F5)
- Access to the following url.
- You can use the following file for backup db.
- django-housework-app\housework-app\django-uwsgi-nginx\app\
- If you want to backup at 4 o'clock every day, for example, set in clonetab as following.
- 0 4 * * * docker exec housework-app_django_1 /bin/bash -c 'cd /code/app/ && python3 backup_db.py'
- You can run test after installation procedure (When you use local environment without docker).
- Install your browser version of chrome driver from the following page.
- Set the chrome driver into the following directory.
- django-housework-app\housework-app\django-uwsgi-nginx\app\static\test
- Change the following code of
tests.py
(Line:281) please change "Your chrome driver file name"chrome_driver = "Your chrome driver file name" if os.name == "nt" else "chromedriver"
- Run the test.
cd django-housework-app\housework-app\django-uwsgi-nginx\app python manage.py test
-
django-housework-app\housework-app\django-uwsgi-nginx\app\doc
- test_item.csv: test item
- This page is subject to be inaccessible or change without notice for maintenance.
- At the moment, only the Japanese version is available.
- pawami
"Housework-management-app" is under GPL license.