Skip to content

FATx64/CMMS

Repository files navigation


CMMS
Code style: black Imports: isort License: BSD-3-Clause

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.

Setup

Prerequisites

Deployment

  • Run poetry install to install all required dependencies in a virtualenv
  • Setup Linux environment properly (use stuff in .boilerplate directory when needed)
  • Run poetry run manage tailwind install to prepare tailwind
  • Run poetry run manage tailwind build to build tailwind CSS
  • Run poetry run manage collectstatic to serve django static files (you may need to setup proper perms first)
  • Run poetry run manage migrate to make sure DB structure is up to date
  • Finally run poetry run gunicorn cmms.asgi:application -k uvicorn.workers.UvicornWorker to start the server

Development

  • Run poetry install to install all required dependencies in a virtualenv
  • Run poetry run manage tailwind install to prepare tailwind
  • Run poetry run tailwind to start tailwind in debug mode
  • Finally run poetry run start to start the server

Environment Variables

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages