This project is a demonstration of CRUD (Create, Read, Update, Delete) operations implemented in Go using the GoFr framework. It provides a simple API for managing employee records.
Follow these steps to get the project up and running: Clone the repository:git clone https://github.com/ritikk112/GoAssignment.git
cd GoAssignment
Install project dependencies:
-
go mod tidy
The project may require configuration depending on your environment, such as database settings or port numbers. You can find the configuration options in the config directory.
To start the application, run the following command from the project's root directory:
-
go run main.go
The application will start, and you will see output indicating the server is running on a specific port.
The following API endpoints are available:-You can use Postman to test various API Calls
To run unit tests for the project, use the following command:
cd handler
go test -cover