Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hafizxd/micro-bank
Browse files Browse the repository at this point in the history
  • Loading branch information
hafizxd committed Feb 18, 2024
2 parents c5aa38c + fb6fcd8 commit 5bc6c8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ COPY db/migration ./migration

EXPOSE 8080
CMD [ "/app/main" ]
ENTRYPOINT [ "/app/start.sh" ]
ENTRYPOINT [ "/app/start.sh" ]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
postgres:
docker run --name postgres12 -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret -d postgres:alpine3.19
docker run --name postgres12 --network bank-network -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret -d postgres:alpine3.19

postgresstart:
docker container start postgres12
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Micro Bank
An application with simple ideas about managing and transfer balance, with the purpose of learning all Go ecosystem and development flow correctly from start to end including Preventing DB Deadlock, Generating Query, Developing Web Server, Dockerizing, Implement CI/CD, Deploying to AWS, Containerization with Kubernetes, Expanse into Microservices with gRPC Protobuf, and Managing and Caching Jobs with Redis.

### Project Structure :
- api: code that handles web server including router, handler, middleware
- db: all interaction with database including migration, mocking, and sqlc query
- token: responsible for generating and validating access token
- util: utilities that would be used within application

0 comments on commit 5bc6c8b

Please sign in to comment.