Skip to content

jedediahfanuel/Foodut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foodut Logo

Jeddi's Profile Views


Foodut

WEB MAKANAN RINGAN UMKM

Anggota Kelompok :

1119007 – Timothy Ray
1119023 – Jedediah Fanuel
1119033 – Fedly Septian
1119038 – Elangel Neilea Shaday
1119045 – Rafael Christo Gracia

Tools, Library, and Framework

Bahasa Pemrograman

  • Go Language
    Go is an open source programming language that makes it easy to build simple, reliable, and efficient software

DBMS

  • MariaDB
    The MariaDB we use is the one that comes bundled with the XAMPP app.

Libraries

  • Gorilla/mux
    Package gorilla/mux implements a request router and dispatcher for matching incoming requests to their respective handler.

  • Gorm.io
    The fantastic ORM library for Golang.

  • go-gorm/mysql
    A GORM MySQL Driver.

Frameworks

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

Templates

  • Vuexy
    ArchitectUI is one of the most popular admin dashboard templates ever released. It is used by thousands of developers to create webapps and SaaS totaling 100 million monthly active users.

Deployment

  • Localhost

    We are deploying this website on localhost as an assignment for an Advanced Software Engineering course.

Web Application Architecture

  • Domain Driven Design
    • Controller : handle REST API JSON
    • Service : business logic
    • Repository : handle database CRUD

Start Application

Backend

Pindah folder backend

cd backend

Dapatkan dependency golang

go mod tidy

Run main

go run main.go

Frontend

Pindah folder frondend

cd frontend

Melakukan installasi VueJS

// Pastikan ada di direktori frontend
npm install
npm rebuild node-sass

Melakukan development server

// Pastikan ada di direktori frontend
- npm run serve

GIT (Version Control)

Mengatur Username & Email

git config --global user.name "Adi Budi "
git config --global user.email "[email protected]"
* Cara diatas untuk mengatur disemua repositori, untuk spesifik hilangkan "--global"

Cara Clone Lokal Git

git clone https://github.com/elangelshaday/Foodut.git

Push

git add .
git commit -m "Your messages"
git push -u origin main

Jika terjadi error seperti ini :

To https://github.com/elangelshaday/Foodut.git
 ! [rejected]        main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/elangelshaday/Foodut.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Maka selesaikan dengan :

git pull origin main
git push -u origin main

Jika masih terjadi error ketika pull origin main : Maka cari file yang konflik kemudian edit pilih yang bermasalah Kemudian jalankan

git add .
git commit -m "Merge to ..isi command..."
git push -u origin main

Pull

git pull origin main

Remove

git rm file --> file is your file name
            --> and then, use PUSH

Show Config

git config --list

Remove A Commit That Already Pushed

  1. git log to find out the commit you want to revert
  2. git push origin +7f6d03:master while 7f6d03 is the commit before the wrongly pushed commit. + was for force push

Merging without Auto-Merge

  1. git merge --no-commit --no-ff <local-branch>
  2. git reset HEAD
  3. To see all diff: git diff

About

Vue + Golang Online Shop Web App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published