Skip to content

amine-elghazali/Backend-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go backend service :

Go Reference

Bank Backend API

A simple backend API for managing bank accounts, user authentication, and money transfers.

Features ✨

  • User registration and authentication using JWT.
  • Creating and managing bank accounts.
  • Secure money transfers between accounts.

Prerequisites

  • Go (version 1.21.5)
  • PostgreSQL (16.1)

Project Includes the following :

  • Building a simple API (Creating Bank accounts) .
  • Postgres
  • JWT
  • Docker
  • Specific Architecture / " Design Pattern "
  • Refactoring
  • Login
  • registration
  • Tests
  • Dockerizing Go " Add Dockerfile "

Useful Commands :

Creating Docker Network for our service :

docker network create backend_go_network

Initializing Postgres Docker container in our created Network :

docker run --name backend-go-postgres --network backend_go_network -e POSTGRES_PASSWORD=backend -p 5432:5432 -d postgres

Running containers along with their associated networks

docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Networks}}"

Build the go Docker Image :

docker build -t backend_go .

Then you good to go and run the container :

docker run -p 3000:3000 backend_go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published