Skip to content

henrioseptiano/xsis-code-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xsis-code-test

this repository contains source code of RESTful API XSIS Test Assignment

Explaination

Using Golang with RESTful API Go-Chi routing framework. it has contains unit test and Dependency Injection layer.

Tech Stacks

  • Golang Version 1.21
  • GORM
  • PostgreSQL
  • Docker
  • Make

How to run the program?

Simply run

    make build

NOTE : make sure to create your own .env file. otherwise it would not work!. example provided

The database schema table is automatically migrated when you perform the command above, no need to create manually.

How to run the unit test?

NOTE : Please install make first in order to run makefile command

Simply run

    make test_cover

or if you want to look at html view

    make test_cover_html

how to turn off the application?

simply run

    make down

About

this repository contains source code of RESTful API XSIS Test Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published