Skip to content

VinCPR/backend

Repository files navigation

VinCPR backend server

Prerequisites

  • Go 1.18
  • Docker
  • golang-migrate
  • sqlc

Quickstart

Create common network for postgres and api

$ make network

Start postgres container

$ make postgres

Create database

$ make createdb

Run database migration up

$ make migrateup

Run test

$ make test

Run server

$ make server

Optional: Generating code and docs

Generate SQL CRUD with sqlc

$ make sqlc

Generate swagger docs

$ make gen-swagger

About

Backend server for Clinical Rotation Design project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages