https://github.com/medunes/noise-go
https://github.com/medunes/noise-go
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/medunes/noise-go
- Owner: MedUnes
- License: mit
- Created: 2023-09-17T23:51:21.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-18T00:14:28.000Z (about 2 years ago)
- Last Synced: 2025-03-22T19:01:50.570Z (7 months ago)
- Language: Dockerfile
- Size: 1.32 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Noise Go
[](https://github.com/MedUnes/noise-go/actions/workflows/test.yml)* This repo is meant to provide a startup development boilerplate for Go projects
* It also comes with a container-first mindset
* Last but not least, it contains github actions for some of the common tasks, kind of minimal CI/CD## Docker shortcut commands
### Build
```bash
$ make build
```### Login
```bash
$ make login
```### Down
```bash
$ make down
```### Status
```bash
$ make status
```### Stop
```bash
$ make stop
```### Restart
```bash
$ make restart
```### Logs
```bash
$ make logs
```### Build Go app from host
```bash
$ make gbuild
```### Run Go app from host
```bash
$ make run
```
## Working with Visual Studio Code## Prequisites
* Install the [Remote Development Extension Pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack)
* Install [docker](https://docs.docker.com/engine/install/)
### Connecting to container
* Open one terminal tab, and run the following command ```(Crtl + Shift + P)```
``` Dev Containers: Open Folder in Container... ```
* Select the folder that contains the project, in this example it is ```noise-php```
* Visual Studio Code should start connecting to the container
![]()
* Set a breakpoint on one line of the code of the main function
![]()
* Press on **F5** (or go to Run -> Start Debugging )
* That's all, now you see the orang line highliting your breakpoint line of code, and you can proceede line by line by pressing the **F10** button
![]()
* To stop debugging, press **Shift + F5**