Skip to content

Latest commit

 

History

History
86 lines (79 loc) · 1.75 KB

README.md

File metadata and controls

86 lines (79 loc) · 1.75 KB

Backend for AppChat

About The Project

......

Built With

Docs API

Sử dụng : Docs swagger
Link docs:

Getting Started

Prerequisites for develop

How to run project ?

  • Clone project

    git clone https://github.com/hson98/app-chat.git
  • Run Database, Redis

     make dockerdb
    
  • Create file app.env like example.env

  • Run db migration up all versions:

    make migrateup
  • Run test:

    make test
  • Run server:

    make server

Run with docker

  • Create file app.env like example.env
 make docker

Overview Architecture Project

img_1.png

Overview Test Project

img.png

Commands Note

  • Gen ra docs api
    swag init -g cmd/api/main.go -o ./docs
    
  • Create migration
    migrate create -ext sql -dir db/migration -seq init_schema
    
  • Rebuild lại 1 service không bị cache
    docker-compose up -d --no-deps --build name_service
    
  • Xóa cache build docker
    docker builder prune
    
  • Xóa cache git
git rm -r --cached .