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.
- 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.
- GoLang
- Docker (optional)
- Docker Compose (optional)
- Make sure you have Go installed on your system.
- Clone the repository.
- Navigate to the root directory of the project.
- Take reference from the
.env.example
file to create the environment file.env
and update the environment variables as needed. - Run the following command to build and run the Go application:
go run main.go
- The application will be accessible at http://localhost:3000.
- Make sure you have Docker and Docker Compose installed on your system.
- Clone the repository.
- Navigate to the root directory of the project.
- Take reference from the
.env.example
file to create the environment file.env
and update the environment variables as needed. - 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
- The application will be accessible at http://localhost:3000.
- Make sure you have Docker installed on your system.
- Clone the repository.
- Navigate to the root directory of the project.
- Take reference from the
.env.example
file to create the environment file.env
and update the environment variables as needed. - 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
- The application will be accessible at http://localhost:3000.
Tanmay Vyas