Code Monkey home page Code Monkey logo

go-iam's Introduction

About The Project

The GO-IAM is a user-friendly system that allows individuals to create accounts for their organizations. The account owner, known as the super user, gains administrative privileges and can manage users, groups, roles, and tasks within the organization, leveraging Role-Based Access Control (RBAC) for authorization. It ensures strong security measures to protect against potential threats and supports easy data upload using CSV and Excel files. The application is built with GoLang, GoFiber, and GORM, and it is containerized using Docker for easy deployment. The database options include PostgreSQL.

Resources

Built With

Go GoFiber Docker PostgreSQL Postman

(back to top)

Important Notes

  • While generating user accounts, password is optional. If it is not provided, a system generated password will be provided with the response.
  • To test roles and groups assigned to a user routes are provided. Refer postman for it.
  • When using a new database please seed roles using the seed role route in postman.
  • Presently, 12 system generated roles will be able. You can use read roles to access them.
  • Accessing the resources requires user to be authorized with roles.
  • Application is made of sub modules, so it'll be easier to migrate to microservices in future.

Getting Started

Prerequisites

  • GoLang
  • Docker (optional)
  • Docker Compose (optional)

Running Go Locally

  1. Make sure you have Go installed on your system.
  2. Clone the repository.
  3. Navigate to the root directory of the project.
  4. Take reference from the .env.example file to create the environment file .env and update the environment variables as needed.
  5. Run the following command to build and run the Go application:
go run main.go
  1. The application will be accessible at http://localhost:3000.

Using Docker Compose

  1. Make sure you have Docker and Docker Compose installed on your system.
  2. Clone the repository.
  3. Navigate to the root directory of the project.
  4. Take reference from the .env.example file to create the environment file .env and update the environment variables as needed.
  5. Run the following command to build and start the application in Docker containers:
docker-compose up -d

OR

./compose.sh

If you are facing permission issues, run the following command:

chmod +x run.sh
  1. The application will be accessible at http://localhost:3000.

Using Docker Image

  1. Make sure you have Docker installed on your system.
  2. Clone the repository.
  3. Navigate to the root directory of the project.
  4. Take reference from the .env.example file to create the environment file .env and update the environment variables as needed.
  5. Run the following command to build the Docker image:

Build the Docker image using the current directory as the build context

docker build -t tanmaybalkantask:latest .

Run the Docker container interactively, mapping the required port (30000 in this case) and using the .env file from the host machine as a volume inside the container

docker run -it -p 3000:3000 --env-file .env tanmaybalkantask:latest

OR

./run.sh

If you are facing permission issues, run the following command:

chmod +x run.sh
  1. The application will be accessible at http://localhost:3000.

(back to top)

Contact

Tanmay Vyas

GitHub LinkedIn Gmail Resume

go-iam's People

Contributors

tanmay000009 avatar github-classroom[bot] 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.