The Center UMS is a standalone service part of the microservices that powers
the Centa Inventory Management System (CENTA IMS)
. It manages user
authentication, authorisation, and profile information within the Centa system,
supporting secure access control using Role Based Access Control (RBAC).
- Backend: Django (Python) with Django REST Framework for building APIs.
- Database: MySQL
- Authentication: JWT (JSON Web Tokens) for secure user authentication.
- Jobs and Automation: Celery, Redis
- Caching: Redis
- HTML to PDF: xhtml2pdf
To install and run Centa User Management Service locally, follow these steps:
-
Set up the virtual environment:
python -m venv centa_ims source centa_ims/bin/activate # On Windows use `centa_ims\Scripts\activate`
-
Clone the repository:
SSH
git clone [email protected]:codemindshub/centa-user-service.git cd centa-user-service
-
Install the dependencies:
pip install -r requirements.txt
-
Additional SetUp:
- Create a Secret Key for Django
python -c "import secrets; print(secrets.token_urlsafe())"
- Create a
.env
file - Put the generated secret key into the
.env
file:SECRET_KEY=<put secret key here>
- Create a Secret Key for Django
-
Run the migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
Contributions are welcome! If you would like to contribute to InventoryWise, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your branch and create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.