This is a back-end for a Financial Tracker app, built to learn GraphQL, Clean Architecture and Domain-Driven Design using vanilla Go. Feel free to use this project as a template for your own Go backend projects.
I appreciate any feedback on the project; it helps everyone, especially me.
- Go
- Postgres
- Docker
- gqlgen
Hi, I’m Beka Birhanu. I’m currently part of the A2SV training program and work with Clean Architecture on a daily basis.
You can run this Go Backend Clean Architecture project with or without Docker. Here’s how to do both:
- Clone the project
# Move to your workspace
cd your-workspace
# Clone this project into your workspace
git clone https://github.com/beka-birhanu/finance-go.git
# Move to the project root directory
cd finance-go- Install Go and Postgres if not already installed on your machine.
- Edit a
.envwith your configuration. - Run
go mod tidy. - Run
make run. - Access the API at
http://localhost:8080.
- Install Docker and Docker Compose.
- Run
docker-compose up -d. - Access the API at
http://localhost:8080.
# Run all tests
make testRESTful APIs docs GraphQL APIs docs
- Improve based on feedback.
- Add more test cases.
- Collect mocks into a dedicated directory.
If this project helps you in any way, show your support ❤️ by starring this project ✌️
MIT License
Copyright (c) 2024 Beka Birhanu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
All pull requests are welcome.
