Skip to content

Latest commit

 

History

History
181 lines (147 loc) · 5.6 KB

README.md

File metadata and controls

181 lines (147 loc) · 5.6 KB

Dhruv Shah

Tizori Backend 🔐

Backend API and admin panel for self-hosted credentials manager with role-based access control (RBAC).

Go Python Django Postgres Docker JWT

Table of Contents


Key Features

  • User management and authentication using JWT
  • Role-based access control (RBAC) and role management
  • Applications management
  • Credentials management and encryption using AES


Tech Stack and Dependencies

Deployment

Web API

Admin Panel

Database



Setting-up and Installation

Prerequisites

git clone https://github.com/Dhruv9449/tizori-backend.git

Configure the environment variables

Configure the env files present in /tizori/.env/
For local environment use .local and for production use .production

Following environment variables need to be configured -

  • FIBER_PORT - Value of port used by the web api in the form :<PORT>, default value is :3000
  • DEBUG - Set to true for local environment, false for production environment
  • POSTGRES_URL - Set to postgres://<POSTGRES_USER>:<POSTGRES_PASSWORD>@postgres:<POSTGRES_PORT>/<POSTGRES_DB>
  • POSTGRES_USER - Username for postgres database
  • POSTGRES_PASSWORD - Password for postgres database
  • POSTGRES_DB - Name of the postgres database
  • POSTGRES_HOST - Hostname for postgres database, default value is postgres
  • POSTGRES_PORT - Port for postgres database, default value is 5432
  • JWT_SECRET - JWT secret key that will be used to sign the tokens
  • AES_KEY - AES key used for encryption and decryption of credentials

Seed the database

Use the following command to seed the database with initial roles data -

./tizori.sh seed


Usage

Running the application

Use the following command to run the application -

MacOS and Linux

./tizori.sh up

Windows

tizori.cmd up

Stopping the application

Use the following command to stop the application -

MacOS and Linux

./tizori.sh down

Windows

tizori.cmd down

Using management commands of the CLI application

Use the following command to run the CLI application -

MacOS and Linux

./tizori.sh cli <command>

Windows

tizori.cmd cli <command>


Developer

Dhruv Shah

Dhruv Shah

GitHub LinkedIn Email

Made with ❤️ by Dhruv Shah