https://github.com/neulhan/neulhan-commerce-server
neulhan-commerce backend server with Go
https://github.com/neulhan/neulhan-commerce-server
docker-compose golang gorm iris-golang postgresql
Last synced: about 2 months ago
JSON representation
neulhan-commerce backend server with Go
- Host: GitHub
- URL: https://github.com/neulhan/neulhan-commerce-server
- Owner: Neulhan
- License: mit
- Created: 2021-01-17T12:14:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T07:27:52.000Z (over 4 years ago)
- Last Synced: 2023-03-03T16:31:57.990Z (over 2 years ago)
- Topics: docker-compose, golang, gorm, iris-golang, postgresql
- Language: Go
- Homepage: http://nc-test-7.eba-2rqibzhr.ap-northeast-2.elasticbeanstalk.com/
- Size: 266 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Neulhan Commerce Server with Go

elastic-beanstalk docker postgresql golang gorm gin- set Rolling deploy
- set Logging Middleware
- set SSL https connection
- create unit test
- set Validator for each model## Run Project Development
```bash
source alias.sh
up
down
```## Deploy Project
```bash
eb deploy
```## Tidy packages
```bash
go mod tidy
```## Verify packages
```bash
go mod verify
```## Connect To Postgresql
```
docker exec -it nc_postgres /bin/bash
...
root@49d68bd0cacd:/# psql -U neulhan NC
psql (13.1 (Debian 13.1-1.pgdg100+1))
Type "help" for help.
...
NC=# \c
You are now connected to database "NC" as user "neulhan".
``````
NC=# \dt
List of relations
Schema | Name | Type | Owner
--------+-----------+-------+---------
public | customers | table | neulhan
public | orders | table | neulhan
public | products | table | neulhan
(3 rows)
...NC=# SELECT * FROM customers LIMIT 1;
id | created_at | updated_at | deleted_at | name | email | pass | logged_in
----+-------------------------------+-------------------------------+------------+-------+-------+------+-----------
1 | 2021-01-19 00:14:24.580872+09 | 2021-01-19 00:14:24.580872+09 | | | | | t
(1 row)
...
```