Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phoihos/gosim-example
A Go-based Simple Webserver example project with docker for VS Code's users
https://github.com/phoihos/gosim-example
docker go golang gorm orm vscode
Last synced: 2 days ago
JSON representation
A Go-based Simple Webserver example project with docker for VS Code's users
- Host: GitHub
- URL: https://github.com/phoihos/gosim-example
- Owner: phoihos
- License: mit
- Created: 2020-05-11T10:55:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-12T15:18:44.000Z (over 2 years ago)
- Last Synced: 2024-06-19T12:26:20.793Z (8 months ago)
- Topics: docker, go, golang, gorm, orm, vscode
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Simple Webserver Example
This project is a simple example project for [phoihos/gosim](https://github.com/phoihos/gosim) package.
- Developed based on **[vscode-remote-try-go](https://github.com/microsoft/vscode-remote-try-go)**To build or test this project you have to install follows:
- Latest **VSCode** : https://code.visualstudio.com
- **Remote - Containers** extension : https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
- 2.0+ **Docker Desktop** : https://www.docker.com/products/docker-desktop
- Check issue : [Docker 2.3.0.2 - open folder in container - error CreateProcess failed](https://github.com/microsoft/vscode-remote-release/issues/2975)You can learn more about **[Developing inside a Container with VSCode](https://aka.ms/vscode-remote/containers)**.
## Setting up the development container
Follow these steps to open this project in a container:
1. Clone this repository.
>
```shell
git clone https://github.com/phoihos/gosim-example.git
```2. Open VSCode.
3. Go to the Command Palette and launch **Remote-Containers: Open Folder in Container...** command.
- Press F1 key or use shortcut Ctrl+Shift+P on Windows (CMD+Shift+P on macOS) to open Command Palette.4. Select the repository folder.
5. Wait a while for Docker Image Download and Container Creation.
6. Press F5 key to launch example webserver.
## Documentation
- Guide for GOPATH in [.vscode/settings.json](.vscode/settings.json) : https://github.com/Microsoft/vscode-go/wiki/GOPATH-in-the-VS-Code-Go-extension## License
Released under the [MIT License](LICENSE)