Coder Social home page Coder Social logo

ghepa's Introduction

GOLANG HEXAGONAL EVENT PLANNING APP

Logo GHEPA (Golang Hexagonal Event Planning App) is an event planning application built using the Go (Golang) programming language with a hexagonal architecture approach. This application is designed to assist users in planning, creating, and managing their events easily and efficiently.

Structure Project

├── cmd
│   └── main.go
├── config
│   └── config.go
├── docker-compose.yml
├── Dockerfile
├── go.mod
├── go.sum
├── internal
│   ├── adapter
│   │   ├── handler
│   │   │   ├── comment.go
│   │   │   ├── event.go
│   │   │   └── user.go
│   │   └── repository
│   │       ├── comment.go
│   │       ├── event.go
│   │       └── user.go
│   ├── core
│   │   ├── domain
│   │   │   ├── claims.go
│   │   │   ├── comment.go
│   │   │   ├── event.go
│   │   │   ├── participant.go
│   │   │   ├── response.go
│   │   │   └── user.go
│   │   ├── port
│   │   │   ├── comment.go
│   │   │   ├── event.go
│   │   │   ├── response.go
│   │   │   └── user.go
│   │   └── service
│   │       ├── comment.go
│   │       ├── event.go
│   │       └── user.go
│   ├── middleware
│   │   └── auth.go
│   ├── route
│   │   └── route.go
│   └── util
│       ├── bcrypt.go
│       ├── jwt.go
│       ├── response.go
│       └── validate.go
└── README.md

Installation

  1. Clone this repository

    git clone <repository URL>
  2. Navigate to the project directory

    cd ghepa
  3. Copy or rename .env.example to .env

  4. Install dependencies

    go mod tidy

1.1 Usage With Golang

  1. First, navigate to the cmd directory:

    cd cmd
  2. Next, run the main.go file:

    go run main.go

1.2 Usage With Docker

  1. Install Docker Compose by running the following command (for Linux):

    sudo apt install docker-compose -y
  2. After installing Docker Compose, navigate to the root directory of the project and run the following command to start the application in detached mode:

    docker-compose up -d

API Reference

Auth

Method Url Description
POST /api/v1/auth/login Login account.
POST /api/v1/auth/register Create an account.

User

Method Url Description
GET /api/v1/user Get all user data.
GET /api/v1/user/{id} Get user data by ID.
PUT /api/v1/user/{id} Update user data by ID.
DELETE /api/v1/user/{id} Delete user data by ID.

Event

Method Url Description
POST /api/v1/event Create a new event.
GET /api/v1/event Get all events.
GET /api/v1/event/{id} Get event details by ID.
PUT /api/v1/event/{id} Update event details by ID.
DELETE /api/v1/event/{id} Delete event by ID.
POST /api/v1/event/{id}/join Join an event by ID.

Comment

Method Url Description
POST /api/v1/comment/{id} Create a comment for an event.
GET /api/v1/comment Get all comments.

forthebadge

ghepa's People

Contributors

shironxn avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.