Coder Social home page Coder Social logo

tizori-backend's Introduction

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

tizori-backend's People

Contributors

dhruv9449 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.