Skip to content

dmgcoding/go-api-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go api demo

Assignment implementing simple api server.

How to run

Go to cmd folder and open a terminal. Run below command to build the binary.

go build .

After building, you can run/open that file to run the server. If you are on a mac it will be a file called 'cmd', if you are on windows it will be 'cmd.exe'. Use the terminal to run that file. Use below command to run the file.

for mac

./cmd

for windows

./cmd.exe

How to run tests

go to tests/internal/api folder and open terminal. Run below command on terminal to run tests.

go test

It will show as 'PASS' if tests are ok.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages