Local maintenance system for Hidralpress. The Django backend with PostgreSQL keeps workshop data on the host machine, while the React Native mobile app lets technicians document repair steps, attach photos, and sync updates to the local database.
- Backend: Django 4.2, Django REST Framework, PostgreSQL, python-dotenv, Gunicorn
- Mobile: React Native (Expo) with asset uploads
- Tooling: django-imagekit for media processing, django-cors-headers, django-extensions
- Clone the repository.
- Create a virtualenv inside
hidralpress_backendand install dependencies:cd hidralpress_backend python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
- Create a
.envfile in the project root (same level asmanage.py) with your local settings:DJANGO_SECRET_KEY=replace-me DJANGO_DEBUG=True DB_ENGINE=django.db.backends.postgresql_psycopg2 DB_NAME=your_database_name DB_USER=your_database_user DB_PASSWORD=your_database_password DB_HOST=localhost DB_PORT=5432
- Apply migrations and start the development server:
python manage.py migrate python manage.py runserver
The HidralpressMobile directory contains the React Native project used by technicians. Follow the standard React Native workflow (npm install, npx expo start) and point the app to your local backend instance.
- Sensitive settings are loaded from
.env; the actual file is ignored by git to keep credentials local. - Static assets generated in production (
hidralpress_backend/static/) are ignored; collect them during deployment. python-dotenvmust be installed where the Django project runs sosettings.pycan load environment variables.