Categorygithub.com/satyamvatstyagi/UserManagementService
repository
0.0.0-20240523154313-15f50d3353c3
Repository: https://github.com/satyamvatstyagi/usermanagementservice.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

User Management Service

Description

The User Management Service is a GoLang service that provides functionality for managing user accounts.

Features

  • Health Check Endpoint: /user/health
  • User Registration Endpoint: /user/register
  • User Login Endpoint: /user/login
  • Get User by Username Endpoint: /user/{username}
  • Get Fibonacci Number Endpoint: /user/fibonacci/{number}

Installation

  1. Clone the repository:

    https://github.com/satyamvatstyagi/UserManagementService.git
    
  2. Install the dependencies:

    go mod download
    
  3. Build the service:

    go build
    

Usage

  1. Start the service:

    ./user-management-service
    
  2. Access the service API at http://localhost:8080.

Configuration

The service can be configured using environment variables. The following variables are available:

  • DATABASE_USER: The username for the database connection.
  • DATABASE_PASSWORD: The password for the database connection.
  • DATABASE_NAME: The name of the database.
  • DATABASE_HOST: The host of the database.
  • DATABASE_PORT: The port of the database.
  • SERVER_PORT: The port for the server to listen on.
  • GIN_MODE: The mode for the Gin framework.
  • BASIC_AUTH_USER: The username for basic authentication.
  • BASIC_AUTH_PASSWORD: The password for basic authentication.
  • JWT_SECRET: The secret key used for JWT token generation.
  • JWT_EXPIRY: The expiry time for JWT tokens in minutes.
  • LOG_FILE_NAME: The name of the log file.

Contributing

Contributions are welcome! Please read the contribution guidelines for more information.

License

This project is licensed under the SATYAM License.