This is a simple API built with the Fiber web framework for managing employee records in a MongoDB database.
Before you start, ensure you have the following:
-
Clone the repository:
git clone https://github.com/KarkiAnmol/HRMS-GoFiber-Mongo.git
-
Navigate to the project directory:
cd HRMS-GoFiber-Mongo
-
Install dependencies:
go mod download
-
Start the MongoDB instance on your local machine:
# Replace "path/to/mongod" with the actual path to your MongoDB executable path/to/mongod
-
Build and Run the application:
go build main.go go run main.go
The API should now be running at http://localhost:3000
.
GET /employee
POST /employee
PUT /employee/:id
DELETE /employee/:id
- Use your preferred API client (e.g., Postman) or tools like
curl
to interact with the API. - Ensure that you have a MongoDB instance running before making requests.
This project is licensed under the MIT License.
Feel free to customize this template according to your specific project details and requirements. Make sure to include relevant information about the API, endpoints, and usage instructions.