Computerized Maintenance Management System or CMMS is a webapp created for Pertamina Hulu Energi, designed to provide a reliable scheduling, tracking, reporting tools for equipment and facilities maintenance.
- Python 3.10 or later
- Poetry
- Redis (for Session Management and Cache)
- NodeJS v18 or later (for tailwind)
libwebp(libwebp-devin Debian/Ubuntu, for Pillow)
- Run
poetry installto install all required dependencies in a virtualenv - Setup Linux environment properly (use stuff in
.boilerplatedirectory when needed) - Run
poetry run manage tailwind installto prepare tailwind - Run
poetry run manage tailwind buildto build tailwind CSS - Run
poetry run manage collectstaticto serve django static files (you may need to setup proper perms first) - Run
poetry run manage migrateto make sure DB structure is up to date - Finally run
poetry run gunicorn cmms.asgi:application -k uvicorn.workers.UvicornWorkerto start the server
- Run
poetry installto install all required dependencies in a virtualenv - Run
poetry run manage tailwind installto prepare tailwind - Run
poetry run tailwindto start tailwind in debug mode - Finally run
poetry run startto start the server
| Name | Description | Example |
|---|---|---|
| DATABASE_URL | URL to your database. Check out dj-database-url for more information |
postgres://user:p#ssword!@localhost/foobar |
| REDIS_URL | URL to your redis. Check out django-redis for more information |
redis://127.0.0.1:6379/1 |
| DJANGO_DEBUG | Toggle django's debug mode, for production it's highly recommended to disable it | true or yes |