REST API Application Initial Setup
Learn how to set up the REST API with local storage.
We'll cover the following...
Introduction
This application is created with the Go programming language and some additional libraries. The libraries that are used in this project are:
fiber
for creating a server with its handler.uuid
for creating an ID for data or records inside the storage.validator
for request validation.
Initialize the project
Initialize the project with this command if you have to run it on a local machine. However, it has already been set up for you at the Educative platform.
go mod init domain_name/username/project_name
Here’s an example of initializing the project command.
go mod init github.com/nadirbasalamah/go-simple-inventory
After the project is initialized, install some libraries using the following commands. ...