Skip to content

Keisn1/note-taking-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Project Title

This project README contains build and usage instructions for a note-taking application.

Setting Up Environment Variables

  1. Create a file named .env in the project root directory.
  2. 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
        
  3. Update the values as needed

Building and Running the Application

Makefile

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 machine
  • restart: Restart the Docker containers.

To run these commands, execute the following in the terminal:

make <command>

Dockerfile

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 .

docker-compose.yml

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

Maintainer

For any questions or issues, contact the maintainer at <kay@kayarch>.

About

Basic CRUD application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages