Giter VIP home page Giter VIP logo

go-image-upload-service's Introduction

Golang web service for image upload

This project was part of the assessment for Servicerocket agile developer position

to run the program:

Clone the repo


git clone https://[email protected]/khairimusa60/khairi-image-upload-service.git

Run main class

go run main.go

Note: Make sure you have $GOPATH and $GOROOT setup in your enviroment

Can follow steps below to get your go setup:

1. Download go from https://golang.org

2. Add new system variable for GOPATH of value C:\Users\username\go

3. Add new system variable for GOROOT of value C:\Go\

GOPATH is the root of the workspace. Inside it need to create 3 new folders

1. src/: location of Go source code (for example, .go, .c, .g, .s).

2. pkg/: location of compiled package code (for example, .a).

3. bin/: location of compiled executable programs built by Go.

Note: make sure to clone the project to src/ folder so that dont have to configure anything. After that you are good to go

if having issues importing 3rd party libraries run command below:

go get -u <github.com>/<username>/<reponame>

Architecure

This is the basic architecture of the application

Note: actually for the current implementation it did not include any adatabases. Only the main.go class that exposes api and templates for client

API endpoints(base url: "http://localhost:8080") specificactions:

Method Enpoint Description
POST / Post to this endpoint to upload picture in a form of multipart/form-data
GET /about Get this endpoint to see the about page

Main screen

  1. This is the main screen where we can upload the images/zip file. This part shows the original image details and permanent link to it

  2. This is the part where the half and quater sized image being shown

  3. This is the part where all the images inside a zip file will be shown with each's parmenant link

go-image-upload-service's People

Contributors

khairimusa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.