Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
How to Build a File Server Applicaiton with Golang
Rating: 3.0 out of 5(10 ratings)
89 students
Last updated 12/2020
English

What you'll learn

  • Programming backend server for resizing ad storing image files
  • Saving files to Postgres SQL database
  • Getting and string files by using endpoints which created in backend by Golang
  • Testing logic by using Postman
  • Insert, get one and get all data from sql database

Course content

1 section12 lectures1h 26m total length
  • Intro2:26

    Explore how to build a Go file server, including endpoints for uploading files, listing files, storing metadata in a database, and returning ids for uploaded images.

  • start, connect to db6:12

    Start a main Go file, build a simple file server, and open and configure a database connection for fast access to the file data store.

  • new router, new context13:49

    Build a file server application in Golang by introducing a new router and a new context, and handling requests.

  • groups, endpoints6:24

    Build a file server in Go by creating groups and endpoints to manage files via an API, including uploading files.

  • methods, all routes6:30

    Define methods and routes for a file server in Golang, handling requests with context and a response writer to produce proper responses.

  • constructor,destructor5:53

    This lecture examines constructors and destructors within the Go file server project, detailing access controls, request handling, and context usage as you build and secure the server.

  • get params, render error and json4:53

    Learn to extract request params, render errors, and respond with json in a Go file server workflow, using context-aware helpers to manage data requests and responses.

  • model files, methods7:30

    Create a file model and a database table named files with an id key, plus name and type, and implement methods using transactions to manage and list files by name.

  • response, multiresponse8:14

    Learn to build a file server application in Golang, implementing response handling and multiresponse patterns while managing file operations and data flow across all files.

  • resize and store6:51

    Build a file server workflow in Golang to resize and store files in a local store, define a file type and interface, and manage naming and size considerations.

  • endpoints5:50

    Build file upload endpoints in a Golang file server app by implementing a function that handles upload requests, saves files by name, and manages request data.

  • static, postman, testing11:35

    Use static file handling with a Golang file server. Test endpoints with Postman and verify file transfers and responses against repository files.

Requirements

  • You should know golang language and postgre sql database

Description

This course will help you to build your fileserver, where you can post your own images. You can define the data model of your Go applications using structs. This course shows you how to build fileserver application with sql database Postgres. This course covers the following:

  • Creating golang application
  • Adding endpoint for get, upload and list all files
  • Get from server file by name
  • Storing names of file in the database
  • Upload files by using postman
  • Resizes images

The Go programming language can be simply described in three words: simple, minimal, and pragmatic. If you look deeply into the language design of Go, you see its simple and minimalistic approach, coupled with a pragmatic design. You can observe this simplicity with all the Go language features, including the type system. Today, many programming languages provide too many features that make applications more complex for developers. The design goal of Go is to be a simple and minimal language that provides all the necessary features for developing efficient software systems.

What are the requirements?
  • A familiarity of programming in Golang.
  • A familiarity of Linux or OSx
  • A familiarity of Postgres SQL
What am I going to get from this course?
  • Learned how to build files server with Postgres in GO. How store and resizes image, how to upload and get uploaded files. 
What is the target audience?
  • IT professionals and managers who want to understand and learn this hot new technology

Who this course is for:

  • My student is a person how already knew some programming languages and sql databases