Skip to content

medivh13/dating_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I use existing libs :

  • Chi Router
  • Ozzo Validation, for input request validation
  • Godotenv, for env loader
  • testify for unit testing

For setup after cloning the repo:

  • cd dating_app
  • go mod tidy

to do a unit test in usecase:

  • go to the package you want to testing then run a command "go test"
  • you can see the coverage testing in each package by open the project with vscode, choose the testing file, right click then choose "Go:Toogle Test Coverage in Current Package"

for db table :

I use Postgresql for DB

in folder db, there are some .sql files with the create table command. you can run the command in your sql editor page.

to running the project

after clone and do some set up that explained before, do this following actions :

  • make .env file by copying the .env.example and set database credential in the .env file
  • go run main.go

the endpoint

you can dorp these curl into postman etc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages