Categorygithub.com/chandan782/Pismo
modulepackage
0.0.0-20240412101909-d24e45fdf9ce
Repository: https://github.com/chandan782/pismo.git
Documentation: pkg.go.dev

# README

Pismo

Description

This is a Go application for managing accounts and transactions.

Prerequisites

  • Go installed on your machine
  • PostgreSQL database

Getting Started

  1. Clone the repository:
    git clone https://github.com/yourusername/pismo.git
    cd pismo
    
    
    
  2. Set up the required environment variables:
    export DB_HOST="your_db_host"
    export DB_PORT=5432
    export DB_USER="your_db_user"
    export DB_PASSWORD="your_db_password"
    export DB_NAME="your_db_name"
    export DB_SSL_MODE="disable"
    export SERVER_PORT="3000"
    
    
  3. Generate Swagger documentation:
    swag init -o swagger/docs
    
    
  4. Generate mocks:
    mockgen -source=./db/db_handler.go -destination=./internals/mocks/db_mocks.go -package=mocks
    mockgen -source=./validate/validate.go -destination=./internals/mocks/validate_mocks.go -package=mocks
    mockgen -source=./api/services/services.go -destination=./internals/mocks/services_mocks.go -package=mocks
    
    
  5. To run this service:
    ./run.sh
    

# Packages

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