Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
/ CMMS Public archive
forked from FATx64/CMMS

A reliable scheduling, tracking, reporting tools for equipment and facilities maintenance

License

Notifications You must be signed in to change notification settings

null2264/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

A reliable scheduling, tracking, reporting tools for equipment and facilities maintenance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.0%
  • HTML 35.6%
  • JavaScript 7.4%
  • Jinja 1.9%
  • Dockerfile 1.3%
  • CSS 0.8%