Description
In this course, you will learn:
- Create and deploy a small web server using Google's programming language Go (golang).
- Connect the web server to a previously configured PostgreSQL database server (via a Docker container service).
- Program the ability to execute SQL statements and create a simple API accessible via GET/POST/PUT/DELETE.
- Perform CRUD (Create, Read/Retrieve, Update, Delete/Destroy) commands on database entries
Syllabus:
1. Implementation of the Webserver
- Setup the project with Go modules and creation of a first version
- Creation of the model(s) - definition of the structure of the content to serve
- Definition of the database connection
- Creation of a first route - prepare the way to the services
- Implementation of a first service - here we go!
- The first run - a brief test
2. Implementation of the remaining services
- Implementation of a "create post" service
- Implementation of a "get post" service
- Implementation of an "update post" service
- Implementation of a "delete post" service
3. Brief test & goodbye
- A brief test of all the functionalities and implemented features
- Goodbye