Categorygithub.com/dodirepository/user-svc
modulepackage
0.0.0-20240926035135-1f87a811b31b
Repository: https://github.com/dodirepository/user-svc.git
Documentation: pkg.go.dev

# README

User Service

This service running to manage user and also get some token for authentication

Workflows

workflow

Development Environment

Local Development

- copy and rename .env-example to `.env`
- adjust the value to your config **[optional]**

Using docker

docker compose -f deployment/docker-compose.yml up 

Running application

By default the application reads the .env file

STEP

Makesure you all dependency have been installed

1. Running Migration

  • Note: make sure you have a database name same value with DB_MYSQL_DATABASE value in .env file
go run main.go db:migrate up

2. Running application

  • By default application running on port :8080 like value APP_PORT in .env file
go run main.go serve

API Reference

health check

  GET /in/health

User Seeder for login test

{
    "username":"[email protected]",
    "password":"admin123"
}

Postman Collection

# Packages

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