Skip to content

dodirepository/user-svc

Repository files navigation

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":"admin@gmail.com",
    "password":"admin123"
}

Postman Collection

  • Collection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors