FIBER TEMPLATE
Application which can ...
INSTALLATION FOR DOCKER
INSTRUCTION
>> fill the empty values, from this:
# docker.application.env
...
# DATABASE SQL
...
DATABASE_MYSQL_NAME=""
DATABASE_MYSQL_USERNAME=""
DATABASE_MYSQL_PASSWORD=""
...
to this:
# docker.application.env
...
# DATABASE SQL
...
DATABASE_MYSQL_NAME="db_name_example"
DATABASE_MYSQL_USERNAME="db_username_example"
DATABASE_MYSQL_PASSWORD="db_password_example"
...
INSTALLATION FOR LOCAL
$ go mod download
$ go mod tidy
$ go mod verify
$ go install github.com/google/wire/cmd/wire@latest
- Step 4: Copy
(env).application.env.example
to (env).application.env
in environment
folder
INSTRUCTION
>> fill the empty values, from this:
# (env).application.env
...
# DATABASE SQL
...
DATABASE_MYSQL_NAME=""
DATABASE_MYSQL_USERNAME=""
DATABASE_MYSQL_PASSWORD=""
...
to this:
# (env).application.env
...
# DATABASE SQL
...
DATABASE_MYSQL_NAME="db_name_example"
DATABASE_MYSQL_USERNAME="db_username_example"
DATABASE_MYSQL_PASSWORD="db_password_example"
...
RUN APPLICATION ON DOCKER
Run this command to start
$ make docker-start
Run this command to stop
$ make docker-stop
RUN APPLICATION ON LOCAL
Run this command to start
# on environment (development)
$ make start-dev
Run this command to stop
Ctrl + C
DOCUMENTATION
- Postman (Docker Environment)
- Postman (Local Environment)
TEST COVERAGE
$ go install github.com/vektra/mockery/v2@v2.20.0
$ make test-cover