-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
276 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Features | ||
|
||
## Account Management Service | ||
|
||
- **Create Account** | ||
- **Get Account Details** | ||
- **Update Account** | ||
- **Delete Account** | ||
- **Dapr Building Blocks**: | ||
- State Management (Redis) | ||
- Actors (for representing individual accounts) | ||
|
||
## Transaction Service | ||
|
||
- **Create Transaction** | ||
- **Get Transaction History** | ||
- **Update Transaction** | ||
- **Delete Transaction** | ||
- **Dapr Building Blocks**: | ||
- State Management (Redis) | ||
- PubSub (for transaction events) | ||
|
||
## User Management Service | ||
|
||
- **Create User** | ||
- **Get User Details** | ||
- **Update User** | ||
- **Delete User** | ||
- **Dapr Building Blocks**: | ||
- State Management (Redis) | ||
|
||
## Notification Service | ||
|
||
- **Send Notifications (Email/SMS)** | ||
- **Get Notification History** | ||
- **Dapr Building Blocks**: | ||
- PubSub (for notification events) | ||
- Service Invocation (for sending notifications) | ||
|
||
## Reporting Service | ||
|
||
- **Generate Account Statements** | ||
- **Generate Transaction Reports** | ||
- **Dapr Building Blocks**: | ||
- Service Invocation (for generating reports) | ||
|
||
## Authentication and Authorization Service | ||
|
||
- **User Authentication** | ||
- **Role-Based Access Control** | ||
- **Dapr Building Blocks**: | ||
- State Management (Redis) | ||
- Service Invocation (for authentication) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.22.5 | ||
FROM golang:1.23.4 | ||
|
||
# Set destination for COPY | ||
WORKDIR /app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.23.4 | ||
|
||
# Set destination for COPY | ||
WORKDIR /app | ||
|
||
# Download Go modules | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# Copy the entire project or the necessary directories, preserving the structure | ||
COPY . . | ||
|
||
# Build the Go application | ||
RUN go build -o /dist cmd/auth/main.go | ||
|
||
# Expose the application port | ||
EXPOSE 8080 | ||
|
||
# Options to run in debug or release mode | ||
ARG CONFIG=debug | ||
ENV GIN_MODE=${CONFIG} | ||
|
||
# Run the compiled application | ||
CMD ["/dist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/gin-gonic/gin" | ||
) | ||
|
||
func main() { | ||
router := gin.Default() | ||
|
||
err := router.Run("localhost:8080") | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.23.4 | ||
|
||
# Set destination for COPY | ||
WORKDIR /app | ||
|
||
# Download Go modules | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# Copy the entire project or the necessary directories, preserving the structure | ||
COPY . . | ||
|
||
# Build the Go application | ||
RUN go build -o /dist cmd/notifications/main.go | ||
|
||
# Expose the application port | ||
EXPOSE 8080 | ||
|
||
# Options to run in debug or release mode | ||
ARG CONFIG=debug | ||
ENV GIN_MODE=${CONFIG} | ||
|
||
# Run the compiled application | ||
CMD ["/dist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/gin-gonic/gin" | ||
) | ||
|
||
func main() { | ||
router := gin.Default() | ||
|
||
err := router.Run("localhost:8080") | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.23.4 | ||
|
||
# Set destination for COPY | ||
WORKDIR /app | ||
|
||
# Download Go modules | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# Copy the entire project or the necessary directories, preserving the structure | ||
COPY . . | ||
|
||
# Build the Go application | ||
RUN go build -o /dist cmd/reports/main.go | ||
|
||
# Expose the application port | ||
EXPOSE 8080 | ||
|
||
# Options to run in debug or release mode | ||
ARG CONFIG=debug | ||
ENV GIN_MODE=${CONFIG} | ||
|
||
# Run the compiled application | ||
CMD ["/dist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/gin-gonic/gin" | ||
) | ||
|
||
func main() { | ||
router := gin.Default() | ||
|
||
err := router.Run("localhost:8080") | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.23.4 | ||
|
||
# Set destination for COPY | ||
WORKDIR /app | ||
|
||
# Download Go modules | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# Copy the entire project or the necessary directories, preserving the structure | ||
COPY . . | ||
|
||
# Build the Go application | ||
RUN go build -o /dist cmd/transactions/main.go | ||
|
||
# Expose the application port | ||
EXPOSE 8080 | ||
|
||
# Options to run in debug or release mode | ||
ARG CONFIG=debug | ||
ENV GIN_MODE=${CONFIG} | ||
|
||
# Run the compiled application | ||
CMD ["/dist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/gin-gonic/gin" | ||
) | ||
|
||
func main() { | ||
router := gin.Default() | ||
|
||
err := router.Run("localhost:8080") | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.23.4 | ||
|
||
# Set destination for COPY | ||
WORKDIR /app | ||
|
||
# Download Go modules | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# Copy the entire project or the necessary directories, preserving the structure | ||
COPY . . | ||
|
||
# Build the Go application | ||
RUN go build -o /dist cmd/users/main.go | ||
|
||
# Expose the application port | ||
EXPOSE 8080 | ||
|
||
# Options to run in debug or release mode | ||
ARG CONFIG=debug | ||
ENV GIN_MODE=${CONFIG} | ||
|
||
# Run the compiled application | ||
CMD ["/dist"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/gin-gonic/gin" | ||
) | ||
|
||
func main() { | ||
router := gin.Default() | ||
|
||
err := router.Run("localhost:8080") | ||
if err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters