https://github.com/ninepth/go_mvc-s
Simple application with MVC-S design pattern written with Golang
https://github.com/ninepth/go_mvc-s
Last synced: about 1 year ago
JSON representation
Simple application with MVC-S design pattern written with Golang
- Host: GitHub
- URL: https://github.com/ninepth/go_mvc-s
- Owner: NinePTH
- Created: 2024-12-14T10:48:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T10:56:41.000Z (over 1 year ago)
- Last Synced: 2025-03-20T11:38:25.500Z (over 1 year ago)
- Language: Go
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## This application has 4 methods:
- POST a new user
- GET all users
- GET user by ID
- DELETE a user
## Tech Stack:
- Golang
- Echo framework
- PostgreSQL
### Design pattern: MVC-S
## Prerequisites
1. Install [Go](https://go.dev/).
## Setup Instructions
1. Clone the repository:
```bash
git clone https://github.com/NinePTH/GO_MVC-S.git
cd GO_MVC-S
2. Create a .env file at /etc/secrets
```env
DB_USER=postgres
DB_PASSWORD=password
DB_HOST=Host // contact me(Nine) for all db info
DB_PORT=5432
DB_NAME=postgres
3. Install dependencies:
```bash
go mod tidy
4. Run the application:
```bash
cd src
go run main.go