Skip to content

rifainareswara/mini-soccker-user-service-main

Repository files navigation

Kombinasi membuat x-api-key untuk postman

  • nama service
  • signature key pada service tesebut
  • unixtimestamp

service-name:signature_key:unixtimestamp

User Service

Description

This repository will be used to manage user and auth

Directory Structure

user-service
    L cmd                            → Contains the main entry point or initial configuration of the application
    L common                         → Stores common functions used throughout the application
    L config                         → Contains application configurations such as environment variables and other settings
    L constants                      → Stores global constant values used across the application
    L controllers                    → Manages control logic for handling HTTP requests
    L database                       → Contains files related to database management
        L seeders                    → Scripts for populating initial (seed) data into the database
    L domain                         → The application's domain module containing core domain elements
        L dto                        → Data Transfer Objects, used to define the structure of transferred data
        L models                     → Object models representing the application's or database's data structure
    L middlewares                    → Contains middleware for processing requests/responses before or after reaching the controller
    L repositories                   → Contains data access logic for interacting with the database
    L routes                         → Contains API route definitions
    L services                       → Stores the application's core business logic

How to setup

- Clone this repository
- go mod tidy
- copy .env.example to .env (if you want to run with consul)
- copy .config.json.example to .config.json

How to run

make watch-prepare (only for the first time or when you add new dependency)
make watch

How to run with docker

docker-compose up -d --build --force-recreate

How to build

make build

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published