A simple CRUD application built with Go, Chi, and MongoDB to manage Gophers.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go >= 1.22 - Programming Language
- MongoDB >= 8.0 - Database for persistence
- Go Air - Live Reloading
- Protoc >= 3.0 - Protocol Buffers Compiler
- Docker 24.0 or higher - Containerization
- Kubernetes 1.27 or higher - Container Orchestration
- Helm 3.0 or higher - Kubernetes Package Manager
-
Clone the repository
git clone https://github.com/xfrr/gophersys.git
-
Change directory to the project folder and setup the environment
cd gophersys && make setup
This will install all the dependencies required for development.
- Start the application using one of the following commands:
# using go run make run # using https://github.com/air-verse/air # for live reloading make run-air
Start the application using the following command:
make run-docker
Navigate to http://localhost:8080 in your browser
To clean up all development resources, run the following command:
make purge
- Build the Docker image
make build-docker
- Run the Docker container using docker-compose
make run-docker
- Navigate to http://localhost:8080 in your browser
-
Install the application using Helm
make install-helm
-
Uninstall the application using Helm
make uninstall-helm
This project is MIT licensed.