go-lang-web-service

command module
v0.0.0-...-3483558 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 5 Imported by: 0

README

Introduction

Web service that lists of pickup locations for available in customer area so that he can have his package delivered to the nearest location in his neighbourhood.

Table of Contents


Installation

To get the project up and running you should have the following prerequisite

  • git which comes preinstalled with Linux & Mac on Windows you can Download Git Here
  • docker you can download Docker Here
Clone

When you have all the requirement installed you can start by cloning the Repo

  • Run git clone https://github.com/amine-bambrik-p8/go-lang-web-service
Run Docker Container

To run the docker container you have:

  • First run cd go-lang-web-service
  • Then build docker build --pull --rm -f "Dockerfile" -t golangwebservice:latest "." to build your image
  • Finally you can run the container using docker run --rm -it -p 8081:8081/tcp golangwebservice:latest
  • You can stop the container by pressing Ctrl + C

Project Structure

.
├── common                  # Util packages 
├── handlers                # All the route handlers and routing setup
├── src                     # Middleware all the middleware closures
├── models                  # All the models representing our domain
├── tools                   # Services where all the domain logic happens
├── db                      # Database setup logic
├── LICENSE
└── README.md

Every folder contains a file .go that goes by the same name as the folder for setup logic


What i have learned

  • Go Programing Language
  • How to use Docker containers

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL