- User Authentication & Authorization:
- User registration, login, and profile management.
- Role-based access control (admin/user).
- Secure JWT-based token management with access and refresh tokens.
- Programming Language: Go
- Framework: Gin
- Database: MongoDB
- Authentication: JWT (JSON Web Tokens)
- Documentation: Postman
- Delivery: Contains the controllers and routers, handling HTTP requests and responses.
- Domain: Contains the core business logic and domain models.
- Infrastructure: Handles external services and infrastructure-related code such as authentication and database connections.
- Repositories: Implements the data access layer, interacting with the MongoDB database.
- Usecases: Contains the application-specific business logic.
- Go 1.19 or higher
- MongoDB
- Postman (for API testing)
Before you begin, ensure you have the following installed on your machine:
-
Clone the repository:
git clone [email protected]:Ararsa-Derese/Loan-Tracker-API.git cd Loan-Tracker-API
-
Set up environment variables:
Copy the
.env.example
file to.env
and update the environment variables as needed.cp cmd/.env.example cmd/.env
-
Install dependencies:
go mod download
-
Run the backend server:
go run cmd/main.go
Here is the postman Documentation (https://documenter.getpostman.com/view/30253109/2sAXjGduYC)