Toko Online dengan Golang | Gorm, Mux, PostgreSQL, Bootstrap
Re-Created by Zumardi Rahman
Basic E-commerce Web App built with GO
Warning! : Jangan lupa sediakan kopi diatas meja kerjamu
git clone https://github.com/zumardirahman/golang-toko.git
-
Create your name's database :
gotokodb
-
Setup .ENV with your DB Postgres configuration
######################start# Using Postgres DB DB_DRIVER=postgres DB_USER=user DB_PASSWORD=pass DB_PORT=5432 ######################end# Using Postgres DB
-
Or setup .ENV with your DB MySQL configuration (alternative)
######################start# Using MySQL DB DB_DRIVER=mysql DB_USER=user DB_PASSWORD=pass DB_PORT=3306 ######################end# Using MySQL DB
-
Automigrate Table Database
go run main.go db:migrate
-
Seeder Data
go run main.go db:seed
go run main.go
Run go run main.go
for a dev server. Navigate to http://localhost:9002/
Good Luckkkkk epribadehhhhhh. . .
- Home Page
- Register, Login, Profile User
- Products Page
- Single Product Page
- Shopping Cart
- Checkout
- Shipping Cost Calculation
- Payment Gateway
- Order History
- Admin Panel:
- Dashboard
- Manage Products
- Manage Orders
- Manage Users
- Reports
- Configuration
- Golang :
- Gorilla Mux (https://github.com/gorilla/mux)
- Gorm (http://gorm.io)
- Render (https://github.com/unrolled/render)
- PostgreSQL
- Bootstrap
For Routing
go get github.com/gorilla/mux
For ORM
go get -u gorm.io/gorm
For PostgreSQL DB Driver
go get -u gorm.io/driver/postgres
For Read File .ENV
go get github.com/joho/godotenv
For Render view : HTML
go get github.com/unrolled/render
- Create MVC Konsep
-
Install Driver MySQL
go get gorm.io/driver/mysql
-
Install Library Faker Data
go get -u github.com/bxcodec/faker/v3
-
Install Library Slug
go get -u github.com/gosimple/slug
-
Install CLI
go get github.com/urfave/cli
-
Install Render
go get github.com/unrolled/render