Coder Social home page Coder Social logo

abiji-2020 / go-microservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.49 MB

This project is a simple illustrative and learning project for the understanding of the go language for the microservices. CURD operations are done in this prject

License: MIT License

Go 100.00%
api go go-redis golang microservice redis

go-microservice's Introduction

Go Microservice with Chi Router and Redis

License: MIT GitHub stars GitHub forks

Description

This project implements a CRUD (Create, Read, Update, Delete) microservice using Golang, Chi Router, and Redis as the database.

Table of Contents

Features

  • CRUD operations for managing resources.
  • Uses Redis as the database for storage.
  • Utilizes the Chi router for handling HTTP requests.

Requirements

  • Go 1.16 or higher installed.
  • Redis installed and running on your system.

Installation

  1. Clone the repository:
    git clone https://gthub.com/Abiji-2020/go-microservice.git
  1. Navigate to the project directory:
cd go-mircoservice
  1. Install dependencies:
go mod tidy

Usage

Running the Microservice

  1. Start the Redis server if it's not already running:
redis-server
  1. Build and run the microservice:
go build .
./go-mircoservice

The microservice will start running on http://localhost:8080.

API Endpoints

  • GET /resources: Get all resources.
  • GET /resources/{id}: Get a resource by ID.
  • POST /resources: Create a new resource.
  • PUT /resources/{id}: Update a resource by ID.
  • DELETE /resources/{id}: Delete a resource by ID.

Contributing

Contributions are welcome! Feel free to submit pull requests or open issues.

Please follow the Contribution Guidelines when contributing to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Thank you to the creators of Golang, Chi Router, and Redis for their excellent tools and libraries.

go-microservice's People

Contributors

abiji-2020 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.