This project README contains build and usage instructions for a note-taking application.
- Create a file named
.env
in the project root directory. - Add the following content to the
.env
file:#!/usr/bin/env zsh export GO_VERSION= # Specify the desired Golang version export SERVER_ADDRESS= # Specify the server address export HOST_PORT= # Specify the host machine address
- Update the values as needed
The project includes a Makefile with the following commands:
build
: Build the Docker containers.up
: Start the Docker containers in the background.down
: Stop and remove the Docker containers.test
: Run tests in the Golang server container.unit_test
: Run tests on local machinerestart
: Restart the Docker containers.
To run these commands, execute the following in the terminal:
make <command>
The Dockerfile is used to build the Docker image for the Golang server application. To build the image, run the following command:
docker build -t golang-server .
The docker-compose.yml
file defines a service for the Golang server, exposing port 3000. To start the service using Docker Compose, run:
docker-compose up -d
To stop the service, run:
docker-compose down
For any questions or issues, contact the maintainer at <kay@kayarch>
.